Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to send alert: pushover: invalid recipient token #187

Open
mgrafr opened this issue Jan 2, 2025 · 1 comment
Open

Unable to send alert: pushover: invalid recipient token #187

mgrafr opened this issue Jan 2, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@mgrafr
Copy link

mgrafr commented Jan 2, 2025

Describe the bug
Unable to send alert: pushover: invalid recipient token
Token and user works with a python script
Expected behavior
as sending a message with a python script installed in the same directory as frigate-notify works correctly, I don't understand where the error comes from

Versions:

  • Frigate NVR: [e.g. 0.14.1]
  • Frigate-Notify: [e.g. v0.3.5]

Frigate-Notify Config:

frigate:
  server: http://192.168.1.2:5000
  ignoressl: true
  public_url: https://frigate.xxxxxxxxxxxxxx.ovh
  headers:
    - Authorization:  Basic bWxxxxxxxxxxxxNTQ2
  startup_check:
    attempts: 5
    interval: 30
  mqtt:
    enabled: false # Une seule méthode de surveillance peut être configurée
    server: 192.168.1.42
    port: 1883
    clientid: frigate-notify
    username: michel
    password: xxxxxxxxx
    topic_prefix: frigate
  webapi:
    enabled: true # Une seule méthode de surveillance peut être configurée
    interval: 60
  cameras:
    exclude:
      - PTZ_nord
alerts:
  general:
    title: Alerte Frigate
    timeformat:
    nosnap:        # Par défaut : allow
    snap_bbox:
    snap_timestamp:
    snap_crop:
    notify_once: true
  quiet:
    start:
    end:
  zones:
    unzoned: allow
    allow:
     - jardin_cote_rue_z1
    block:
     - test_zone_02
  discord:
    enabled: false
    webhook:
    template:
  gotify:
    enabled: false
    server:
    token:
    ignoressl:
    template:
  pushover:
    enabled: true
    token: xxxxxxxx
    userkey: xxxxxxxx
    devices: xxxxxxxx
    priority: 0
    retry:
    expire:
    ttl:
    template:
  telegram:
    enabled: false
    chatid:
    token:
    template:
  smtp:
    enabled: false
    server: smtp.orange.fr
    port: 465
    tls: true
    user: [email protected]
    password: xxxxxxxx
    recipient: [email protected]
    template:
  ntfy:
    enabled: false
    server:
    topic:
    ignoressl:
    headers:
    template:
  webhook:
    enabled: true
    server: http://192.168.1.5/monitor/api/json.php?app=envoi_sms&contenu=essai
    ignoressl:
    method:
    params:
    headers:
    template:

monitor:
  enabled: false
  url:
  interval:
  ignoressl:

Frigate-Notify Logs:

michel@debian:/opt/frigate-notify$ docker logs --tail 50 --follow --timestamps frigate-notify_frigate-notify_1
2025-01-02T13:55:41.805919464Z 2025/01/02 13:55:41 +0000 DBG main.go:75 > Debug logging enabled
2025-01-02T13:55:41.805976275Z 2025/01/02 13:55:41 +0000 INF main.go:78 > Frigate Notify - v0.3.5
2025-01-02T13:55:41.805987267Z 2025/01/02 13:55:41 +0000 INF main.go:79 > Starting...
2025-01-02T13:55:41.805994455Z 2025/01/02 13:55:41 +0000 DBG config/config.go:202 > Attempting to load config file: /app/config/config.yml
2025-01-02T13:55:41.807977291Z 2025/01/02 13:55:41 +0000 INF config/config.go:220 > Config loaded.
2025-01-02T13:55:41.808018387Z 2025/01/02 13:55:41 +0000 DBG config/config.go:231 > Validating config file...
2025-01-02T13:55:41.808032231Z 2025/01/02 13:55:41 +0000 DBG config/config.go:258 > Checking connection to Frigate server...
2025-01-02T13:55:41.818610323Z 2025/01/02 13:55:41 +0000 INF config/config.go:289 > Successfully connected to http://192.168.1.2:5000
2025-01-02T13:55:41.818648568Z 2025/01/02 13:55:41 +0000 DBG config/config.go:291 > Frigate server is running version 0.14.1-f4f3cfa
2025-01-02T13:55:41.818729338Z 2025/01/02 13:55:41 +0000 DBG config/config.go:305 > Cameras to exclude from alerting:
2025-01-02T13:55:41.818857110Z 2025/01/02 13:55:41 +0000 DBG config/config.go:307 >  - PTZ_nord
2025-01-02T13:55:41.819063895Z 2025/01/02 13:55:41 +0000 DBG config/config.go:347 > Events without a snapshot: allow
2025-01-02T13:55:41.819247803Z 2025/01/02 13:55:41 +0000 DBG config/config.go:351 > Notify only once per event: true
2025-01-02T13:55:41.819412185Z 2025/01/02 13:55:41 +0000 DBG config/config.go:357 > Events outside a zone: allow
2025-01-02T13:55:41.819583449Z 2025/01/02 13:55:41 +0000 DBG config/config.go:361 > Zones to generate alerts for:
2025-01-02T13:55:41.819765477Z 2025/01/02 13:55:41 +0000 DBG config/config.go:363 >  - jardin_cote_rue_z1
2025-01-02T13:55:41.819791802Z 2025/01/02 13:55:41 +0000 DBG config/config.go:369 > Zones to exclude from alerting:
2025-01-02T13:55:41.819914891Z 2025/01/02 13:55:41 +0000 DBG config/config.go:371 >  - test_zone_02
2025-01-02T13:55:41.819942609Z 2025/01/02 13:55:41 +0000 DBG config/config.go:387 > All labels included in alerts
2025-01-02T13:55:41.820023043Z 2025/01/02 13:55:41 +0000 DBG config/config.go:395 > No labels excluded
2025-01-02T13:55:41.820086872Z 2025/01/02 13:55:41 +0000 DBG config/config.go:405 > All Sublabels included in alerts
2025-01-02T13:55:41.820175251Z 2025/01/02 13:55:41 +0000 DBG config/config.go:413 > No Sublabels excluded
2025-01-02T13:55:41.820233645Z 2025/01/02 13:55:41 +0000 DBG config/config.go:488 > Pushover alerting enabled.
2025-01-02T13:55:41.820330482Z 2025/01/02 13:55:41 +0000 DBG config/config.go:544 > Webhook alerting enabled.
2025-01-02T13:55:41.820399800Z 2025/01/02 13:55:41 +0000 INF config/config.go:574 > Config file validated!
2025-01-02T13:55:41.820483849Z 2025/01/02 13:55:41 +0000 DBG events/cache.go:18 > Setting up zone cache...
2025-01-02T13:55:41.820673872Z 2025/01/02 13:55:41 +0000 DBG events/cache.go:25 > Zone cache ready
2025-01-02T13:55:41.820803046Z 2025/01/02 13:55:41 +0000 INF main.go:108 > App ready!
2025-01-02T13:55:41.820891595Z 2025/01/02 13:55:41 +0000 DBG events/api.go:38 > Checking for new events...
2025-01-02T13:55:41.828859893Z 2025/01/02 13:55:41 +0000 DBG events/api.go:52 > Found 0 new events
2025-01-02T13:56:41.829789553Z 2025/01/02 13:56:41 +0000 DBG events/api.go:38 > Checking for new events...
2025-01-02T13:56:41.844577314Z 2025/01/02 13:56:41 +0000 DBG events/api.go:52 > Found 0 new events
2025-01-02T13:57:41.845487559Z 2025/01/02 13:57:41 +0000 DBG events/api.go:38 > Checking for new events...
2025-01-02T13:57:41.856862423Z 2025/01/02 13:57:41 +0000 DBG events/api.go:52 > Found 2 new events
2025-01-02T13:57:41.856897853Z 2025/01/02 13:57:41 +0000 INF events/api.go:68 > Event Detected camera=jardin_cote_rue event_id=1735826204.316083-7krc0q label=person zones=jardin_cote_rue_z1
2025-01-02T13:57:41.857117813Z 2025/01/02 13:57:41 +0000 DBG events/api.go:71 > Event start time: 2025-01-02 13:56:39 +0000 UTC event_id=1735826204.316083-7krc0q
2025-01-02T13:57:41.866769087Z 2025/01/02 13:57:41 +0000 INF events/api.go:68 > Event Detected camera=porte_entree event_id=1735826203.95079-hspf4h label=person zones=
2025-01-02T13:57:41.866852264Z 2025/01/02 13:57:41 +0000 DBG events/api.go:71 > Event start time: 2025-01-02 13:56:38 +0000 UTC event_id=1735826203.95079-hspf4h
2025-01-02T13:57:41.866868949Z 2025/01/02 13:57:41 +0000 WRN notifier/pushover.go:72 > Unable to send alert: pushover: invalid recipient token event_id=1735826204.316083-7krc0q provider=Pushover
2025-01-02T13:57:41.870996963Z 2025/01/02 13:57:41 +0000 INF notifier/webhook.go:59 > Alert sent event_id=1735826204.316083-7krc0q provider=Webhook
2025-01-02T13:57:41.879494670Z 2025/01/02 13:57:41 +0000 WRN notifier/pushover.go:72 > Unable to send alert: pushover: invalid recipient token event_id=1735826203.95079-hspf4h provider=Pushover
2025-01-02T13:57:41.880821884Z 2025/01/02 13:57:41 +0000 INF notifier/webhook.go:59 > Alert sent event_id=1735826203.95079-hspf4h provider=Webhook
2025-01-02T13:58:41.879199310Z 2025/01/02 13:58:41 +0000 DBG events/api.go:38 > Checking for new events...
2025-01-02T13:58:41.887966953Z 2025/01/02 13:58:41 +0000 DBG events/api.go:52 > Found 0 new events

Additional context
To remove possible line breaks, I performed: truncate --size=-1 config/config.yml , without success

Screenshots

img

@mgrafr mgrafr added the bug Something isn't working label Jan 2, 2025
@0x2142
Copy link
Owner

0x2142 commented Jan 2, 2025

Hi there,
I believe this error should only occur if the userkey value is incorrect. This should match the User Key as shown in your Pushover dashboard.

Using the trace logging option for frigate-notify, it looks like Pushover doesn't return any extra details with that error - just that the userkey is incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants