Teams integration issue

I am getting this error while integrating teams { "stack": "SyntaxError: Unexpected token z in JSON at position 0\n at JSON.parse (<anonymous>)\n at MsTeamsProvider.<anonymous> (/usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:57:86)\n at step (/usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:33:23)\n at Object.next (/usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:14:53)\n at /usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:8:71\n at new Promise (<anonymous>)\n at __awaiter (/usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:4:12)\n at MsTeamsProvider.sendMessage (/usr/src/app/providers/ms-teams/build/main/lib/msTeams.provider.js:53:16)\n at MSTeamsHandler.<anonymous> (/usr/src/app/apps/api/dist/main.js:15864:40)\n at Generator.next (<anonymous>)\n at /usr/src/app/apps/api/dist/main.js:15846:71\n at new Promise (<anonymous>)\n at __awaiter (/usr/src/app/apps/api/dist/main.js:15842:12)\n at MSTeamsHandler.send (/usr/src/app/apps/api/dist/main.js:15860:16)\n at SendMessageChat.<anonymous> (/usr/src/app/apps/api/dist/main.js:15750:50)\n at Generator.next (<anonymous>)", "message": "Unexpected token z in JSON at position 0" }
9 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
--
--3y ago
Hi @gauravmishraz . Could you share with us the payload used in the message of the notification created when you got that error? It would be very helpful. 🙏
gauravmishraz
gauravmishrazOP3y ago
{ "providerId": "msteams", "credentials": { "webhookUrl":"url" } }
Dima Grossman
Dima Grossman3y ago
It might be an issue with the provider, creating a bug internaly for this and will sync it to a GitHub issue
Novu_Bot
Novu_Bot3y ago
@dimagrossman, you just advanced to level 24!
Dima Grossman
Dima Grossman3y ago
GitHub
[NV-1178] MSTeams integration throwing error · Issue #2026 · novuhq...
What? As reported by a community member on Discord sending an MS team notification throws an error: { &quot;stack&quot;: &quot;SyntaxError: Unexpected token z in JSON at position 0\n at...
gauravmishraz
gauravmishrazOP3y ago
Ok thanks @dimagrossman
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
gauravmishraz
gauravmishrazOP3y ago
Thanks @DCamarasa it worked
Want results from more Discord servers?
Add your server