Skip to content

this.onerror is not a function #37

@lltr

Description

@lltr

I occasionally get this error when trying to send a pushover notification. But I am not sure what might be the cause of it, because it does not happen everytime.

"pushover-notifications": "^1.2.3",

/app/node_modules/.pnpm/pushover-notifications@1.2.3/node_modules/pushover-notifications/lib/pushover.js:137
      this.onerror(error, res)
           ^

TypeError: this.onerror is not a function
    at Pushover.errors (/app/node_modules/.pnpm/pushover-notifications@1.2.3/node_modules/pushover-notifications/lib/pushover.js:137:12)
    at IncomingMessage.<anonymous> (/app/node_modules/.pnpm/pushover-notifications@1.2.3/node_modules/pushover-notifications/lib/pushover.js:250:12)
    at IncomingMessage.emit (node:events:526:35)
    at IncomingMessage.emit (node:domain:488:12)
    at endReadableNT (node:internal/streams/readable:1589:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    ```
    
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions