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•3y ago
Message Not Public
Sign In & Join Server To View
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. 🙏
{
"providerId": "msteams",
"credentials": {
"webhookUrl":"url"
}
}
It might be an issue with the provider, creating a bug internaly for this and will sync it to a GitHub issue
@dimagrossman, you just advanced to level 24!
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: { "stack": "SyntaxError: Unexpected token z in JSON at position 0\n at...
Ok thanks @dimagrossman
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thanks @DCamarasa it worked