Forum Discussion
snorkelbleet
Jan 20, 2023Copper Contributor
[Resolved] "We got a critical error" for oauth2 endpoint
Hello everyone
Today I started receiving the following error:
500 Internal Server Error "We got a critical error"
For the following endpoint:
POST https://login.microsoftonline.com/common/oauth2/v2.0/token
Form data:
client_id = my bot client id
client_secret = my bot client secret
code = code from MS
grant_type = authorization_code
redirect_uri = my redirect URI
This is only failing for one of my bots, and it is working for others (same setup on all of them). The weird thing is, it works when I try it in Postman with the same parameters.
Does anyone know what the error even means, I've never seen it before? Could it be that the IP is restricted or something like that?
Thanks!
Edit: it looks like a deployment issue on one of the environments. Resolved.
- Hi,
Yes it seems to be more of the authentication issue for the bot with the tokens in Microsoft Azure. Can you check if you could create a new client id and secret and check if that works for you.
With Regards,
Satish U