N
Novu•2mo ago
Soumith

Self hosted Novu with Firebase provider error

Hi Team, We are using Firebase provider for push notifications on self hosted novu, and in our production environment we see this error when we trigger notifications on novu activity: "Sending message failed due to "Operation is not implemented, or supported, or enabled. Raw server response: "{"error":{"code":501,"message":"Operation is not implemented, or supported, or enabled.","status":"UNIMPLEMENTED"}}""" Could you guys please shed some light on this error? what could be causing this?
31 Replies
Soumith
Soumith•2mo ago
GitHub
messaging/unknown-error when using sendEachForMulticast · Issue #26...
Operating System version: AWS Lambda Firebase SDK version: firebase-admin 12.3.0 (but also previous versions) Firebase Product: message notification Node.js version: Node.JS 18 NPM version: 9 I hav...
Stack Overflow
PHONE_REGISTRATION_ERROR / UNIMPLEMENTED GCM error on a device usin...
We are using devices which has Linux OS, javascript enabled (using node.js). We are using google FCM to receive notifications. We are using a javascript library (added register() here) to get the fcm
Novu_Bot
Novu_Bot•2mo ago
@Soumith, you just advanced to level 2!
Pawan Jain
Pawan Jain•2mo ago
Hey @Soumith This issue is happening due to deprecate sendMultiCast method. it should be replaced with sendEachForMulticast We fixed this issue in cloud but have not released new docker images that will include this fix
Soumith
Soumith•2mo ago
Hi @Pawan Jain, Do you know when this fix will be released?
Pawan Jain
Pawan Jain•2mo ago
@Soumith We are planning to release new docker images early October
frnandu
frnandu•2mo ago
shit, this is fucked up for self-deployed instances using push notifications in production! I would treat this as critical thing to fix as soon as possible, since it means that push don't work anymore to fcm. And I understand that you concentrate on cloud version and self-hosted are more or less on their own, but missing a build/image for such critical fix really makes our company seriously reconsider using novu, even if self-hosted.
Soumith
Soumith•2mo ago
Agree!!! @Pawan Jain This is breaking in production and we cannot afford customers losing notifications for a month, as this is a hotfix, can you guys please provide interim solution?
Pawan Jain
Pawan Jain•2mo ago
@Soumith @frnandu We are working on a hotfix for this issue. I will keep you updated in this post
frnandu
frnandu•2mo ago
Thank you!
Soumith
Soumith•2mo ago
Thank you @Pawan Jain!
Tomer Barnea
Tomer Barnea•2mo ago
Hey all 😄 the team is working hard to make sure we can release a hotfix soon. @Pawan Jain will follow up ASAP with more updates as the team roles them out. Thanks for understanding and being an amazing community!
Soumith
Soumith•2mo ago
Thanks for the update @Tomer Barnea!
Eduardo Santos
Eduardo Santos•2mo ago
I'm having the same issue. Hope to get this hotfix soon because it's blocking my release to production.
Chandan kumar
Chandan kumar•2mo ago
We are looking for immediate fix...currently all push notifications stopped.
Tomer Barnea
Tomer Barnea•2mo ago
@Pawan Jain can you please give us an update on this topic.
Pawan Jain
Pawan Jain•2mo ago
Small Update on this:- We have published docker images with tag 0.24.3 However, there is one issue with api docker image due to which this tagged version can not be used. Sok from our team is working on resolving that issue @Soumith @Eduardo Santos @frnandu @Chandan kumar @Fakhar @Adil Javed Thanks for being patient with us. - update your worker and other services docker image tag to 0.24.3 except api service - if you see below error with api tag 0.24.1 and 0.24.2. use API docker image tag 0.24.0
✘ api Error manifest unknown 3.2s
Error response from daemon: manifest unknown
✘ api Error manifest unknown 3.2s
Error response from daemon: manifest unknown
checkout this file changes https://github.com/novuhq/novu/pull/6488/files#diff-3553fc766756fb977edd9560e25cd13d2f8e0eb268a1f91760ad298482766b75
Soumith
Soumith•2mo ago
Thank you so much @Pawan Jain! We'll test and let you know 🙂 Please let us know once this is merged.
GetWrong
GetWrong•2mo ago
hope this new docker image release soon
Pawan Jain
Pawan Jain•2mo ago
You can go ahead manually change the version in your docker-compose.yml file @GetWrong We released 0.24.3 version.
Eduardo Santos
Eduardo Santos•2mo ago
Thanks @Pawan Jain , I'll talk with my team here.
Katya Kuzmenchuk
Katya Kuzmenchuk•2mo ago
Hi @Pawan Jain I've encountered an issue while running novu-api 0.24.3. Please find stack trace below
2024-09-12 10:04:24 Error: Cannot find module '@novu/shared/utils'
2024-09-12 10:04:24 Require stack:
2024-09-12 10:04:24 - /usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/lib/novu.js
2024-09-12 10:04:24 - /usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/index.js
2024-09-12 10:04:24 - /usr/src/app/apps/api/dist/main.js
2024-09-12 10:04:24 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
2024-09-12 10:04:24 at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25)
2024-09-12 10:04:24 at require (node:internal/modules/helpers:179:18)
2024-09-12 10:04:24 at Object.<anonymous> (/usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/lib/novu.js:34:15)
2024-09-12 10:04:24 at Module._compile (node:internal/modules/cjs/loader:1469:14)
2024-09-12 10:04:24 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2024-09-12 10:04:24 at Module.load (node:internal/modules/cjs/loader:1288:32)
2024-09-12 10:04:24 at Function.Module._load (node:internal/modules/cjs/loader:1104:12)
2024-09-12 10:04:24 at Module.require (node:internal/modules/cjs/loader:1311:19)
2024-09-12 10:04:24 at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
2024-09-12 10:04:24 at require (node:internal/modules/helpers:179:18)
2024-09-12 10:04:24 at Object.<anonymous>
2024-09-12 10:04:24 Error: Cannot find module '@novu/shared/utils'
2024-09-12 10:04:24 Require stack:
2024-09-12 10:04:24 - /usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/lib/novu.js
2024-09-12 10:04:24 - /usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/index.js
2024-09-12 10:04:24 - /usr/src/app/apps/api/dist/main.js
2024-09-12 10:04:24 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
2024-09-12 10:04:24 at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25)
2024-09-12 10:04:24 at require (node:internal/modules/helpers:179:18)
2024-09-12 10:04:24 at Object.<anonymous> (/usr/src/app/node_modules/.pnpm/@[email protected]/node_modules/@novu/node/build/main/lib/novu.js:34:15)
2024-09-12 10:04:24 at Module._compile (node:internal/modules/cjs/loader:1469:14)
2024-09-12 10:04:24 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2024-09-12 10:04:24 at Module.load (node:internal/modules/cjs/loader:1288:32)
2024-09-12 10:04:24 at Function.Module._load (node:internal/modules/cjs/loader:1104:12)
2024-09-12 10:04:24 at Module.require (node:internal/modules/cjs/loader:1311:19)
2024-09-12 10:04:24 at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
2024-09-12 10:04:24 at require (node:internal/modules/helpers:179:18)
2024-09-12 10:04:24 at Object.<anonymous>
Pawan Jain
Pawan Jain•2mo ago
@Katya Kuzmenchuk , use 0.24.0 tag for api service, for all other services you can use 0.24.3 tag
Eduardo Santos
Eduardo Santos•2mo ago
@Pawan Jain we're now having 2 errors for the same push step:
No description
No description
Pawan Jain
Pawan Jain•2mo ago
@Eduardo Santos These errors are different https://stackoverflow.com/a/56218146
Stack Overflow
"Requested entity was not found" error when trying to send a push n...
I'm trying to send a multicast notification via FCM from a Firebase Cloud function with the following code: const message = { tokens: recipients, notification: { title: title, ...
Pawan Jain
Pawan Jain•2mo ago
Stack Overflow
FCM getting MismatchSenderId
I have an application that uses Google FCM for sending push notifications. When i send a push notification to a group of users, i get a response of MismatchSenderId for some of them. Even though, ...
Eduardo Santos
Eduardo Santos•2mo ago
But I'm able to send the push to the same device tokens directly using FCM Api
Pawan Jain
Pawan Jain•2mo ago
So, there could be the case you have different service.json of different project in Novu and token was generated using other fcm project
Eduardo Santos
Eduardo Santos•2mo ago
It's working now, it might be some delay or caching.
rolkool
rolkool•4w ago
Hello! We just did the proposed updated above on self-hosted instances. We get the "Requested entity was not found error" mentioned above. @Eduardo Santos was it finally a cache issue? It is already 30 minutes after the update and push notifications still have this error
Novu_Bot
Novu_Bot•4w ago
@rolkool, you just advanced to level 1!
Pawan Jain
Pawan Jain•3w ago
@rolkool Requested entity was not found error error occurs if deviceToken is not generated using same credentials as same as service.json credentials
Want results from more Discord servers?
Add your server