N
Novu3y ago
Jaydeep

MS Teams Integration

I was trying out MS Teams integration with Novu i got the following error.
45 Replies
Novu_Bot
Novu_Bot3y ago
@jaydeep_dey03, you just advanced to level 2!
Jaydeep
JaydeepOP3y ago
i had setup webhook url from my teams channel
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
i've hidden the url for security reasons
DavidSouthmountain
What does the right side say in the modals?
Jaydeep
JaydeepOP3y ago
DavidSouthmountain
have you checked whats return on setCredentials?
Paweł T.
Paweł T.3y ago
@jaydeep_dey03 are you sure that you have an active integration in the environment from where you call trigger? maybe you have a couple of chat integrations as active...
george.d
george.d3y ago
Just to give more context in order to check it what @paweltymczuk said you need to go to the Integration Store in the client and and connect the MS integration and make sure it is on Active toggle state .
Jaydeep
JaydeepOP3y ago
Yes, it was enabled I'll share the Screenshots I disabled discord and enabled MS teams, so only one chat service was enabled at a time
george.d
george.d3y ago
I do not believe there is a limitation to the Chat channel but it is a good test case to validate
Paweł T.
Paweł T.3y ago
@jaydeep_dey03 if the integration is enabled, then the credentials are not set properly and it might use the old one from the Discord. Make sure that the credentials are updated, if they are please send the screenshots from the GET /subscribers/:subscriberId endpoint or novu.subscribers.get(:subscriberId) if you can.
Jaydeep
JaydeepOP3y ago
Paweł T.
Paweł T.3y ago
@jaydeep_dey03 thanks could you show what's inside the channels it's the most interesting part? 🙂
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
i changed it to MS Teams in integration store
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
and made the request still same error
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
Paweł T.
Paweł T.3y ago
you've got the 400 status code, and the message say's that you didn't provide in the body the providerId which should be in that case msteams https://docs.novu.co/api/update-subscriber-credentials/
Jaydeep
JaydeepOP3y ago
ah okay
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
i've set MSTeams in channels
Jaydeep
JaydeepOP3y ago
when i give providerId as an object
Jaydeep
JaydeepOP3y ago
it shows
Jaydeep
JaydeepOP3y ago
when i give it in this fashion, as mentioned in docs
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
i get this
Paweł T.
Paweł T.3y ago
which version of the @novu/node do you use? maybe you have to update it? the latest is 0.9.0 the last example is the correct way
Novu_Bot
Novu_Bot3y ago
@jaydeep_dey03, you just advanced to level 3!
Jaydeep
JaydeepOP3y ago
i updated and got a success msg, but
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
this came from novu
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
when i hit the endpoint https://api.novu.co/v1/subscribers/test_user
Jaydeep
JaydeepOP3y ago
Jaydeep
JaydeepOP3y ago
@paweltymczuk
Paweł T.
Paweł T.3y ago
@jaydeep_dey03 interesting, I'll debug that later and will let you know
Jaydeep
JaydeepOP3y ago
Okay, thanks 🙏
Paweł T.
Paweł T.3y ago
@jaydeep_dey03 could you confirm that all the actions you do are on the same env and using the same API key? because the API keys are different for dev and prod...
Jaydeep
JaydeepOP3y ago
I'm using express as backend at 5000 port and my reactjs project is running on 3000 port In both env files i put the same API keys
george.d
george.d3y ago
Just to make sure, what you are saying by that is that all your operation (like credentials update, trigger, etc) were made by the same Novu API key?
Jaydeep
JaydeepOP3y ago
Yes I used one api key in both env files of front end and backend Is that is what causing problem?
Pawan Jain
Pawan Jain3y ago
no @jaydeep_dey03 , I think you mis understood this. We have two environments in Novu, Development and Production. Both environment have different api keys.
Want results from more Discord servers?
Add your server