Skip to content

Nodejs App crashes at random #1623

@theavijitsarkar

Description

@theavijitsarkar

[REQUIRED] Step 2: Describe your environment

  • Operating System version: macos 11.6
  • Firebase SDK version: 8.13
  • Firebase Product: messaging
  • Node.js version: 16.4.1
  • NPM version: 7.18

[REQUIRED] Step 3: Describe the problem

My app is crashing at random times, possibly when disconnected from the network

Steps to reproduce:

Disconnect from network

Log

/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/utils/error.js:42
        var _this = _super.call(this, errorInfo.message) || this;
                           ^

FirebaseMessagingError: Requested entity was not found.
    at FirebaseMessagingError.FirebaseError [as constructor] (/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/utils/error.js:42:28)
    at FirebaseMessagingError.PrefixedFirebaseError [as constructor] (/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/utils/error.js:88:28)
    at new FirebaseMessagingError (/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/utils/error.js:254:16)
    at Function.FirebaseMessagingError.fromServerError (/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/utils/error.js:287:16)
    at Object.createFirebaseError (/Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/messaging/messaging-errors.js:34:47)
    at /Applications/MAMP/htdocs/godial-server/node_modules/firebase-admin/lib/messaging/messaging-api-request.js:76:42
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errorInfo: {
    code: 'messaging/registration-token-not-registered',
    message: 'Requested entity was not found.'
  },
  codePrefix: 'messaging'
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions