botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Performance] Refresh access token failed with status code: 400 and No tenant-identifying information found in either the request or implied by any provided credentials

Open Aashish-Amber opened this issue 9 years ago • 26 comments

System Information (Required)

  • SDK Language: NODE
  • SDK Version: 3.10.10
  • Development Environment: AWS

Issue Description

  1. The bot is unable to connect and is giving error code 400

error: Refresh access token failed with status code: 400

Code Example

When troubleshooting getting this response

curl -k /common/oauth2/v2.0/token -d "grant_type=client_credentials&client_id=&client_secret=&scope=https%3A%2F%2Fapi.botframework.com%2F.default"

{"error":"invalid_request","error_description":"AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: 26b3ec0b-d9ca-4794-9049-c3e6fe624a00\r\nCorrelation ID: 8a42d49d-35bb-4a08-b3e5-a874f25453b2\r\nTimestamp: 2017-07-25 18:59:41Z","error_codes":[50059],"timestamp":"2017-07-25 18:59:41Z","trace_id":"26b3ec0b-d9ca-4794-9049-c3e6fe624a00","correlation_id":"8a42d49d-35bb-4a08-b3e5-a874f25453b2"}

Steps to Reproduce the Issue

Try connecting your bot with any platform , send message to bot and see the logs

Expected Behavior

The bot should connect and respond normally.

Actual Results

error: Refresh access token failed with status code: 400 at Request._callback (/home/ubuntu/multichannelchatbot/node_modules/botbuilder/lib/bots/ChatConnector.js:489:28) at Request.self.callback (/home/ubuntu/multichannelchatbot/node_modules/request/request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (/home/ubuntu/multichannelchatbot/node_modules/request/request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage. (/home/ubuntu/multichannelchatbot/node_modules/request/request.js:1091:12) at IncomingMessage.g (events.js:291:16) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Aashish-Amber avatar Jul 25 '17 19:07 Aashish-Amber

@Aashish-Amber Thanks for reporting. We are experiencing a service interruption and we've got multiple engineers looking into it. Will update you when we have more details.

nwhitmont avatar Jul 25 '17 19:07 nwhitmont

Thanks for the response , Hope it gets fixed soon.

Aashish-Amber avatar Jul 25 '17 19:07 Aashish-Amber

Fantastic! The folks at the OneWeek hackathon thank you :)

isabelacmor avatar Jul 25 '17 19:07 isabelacmor

Same problem here. We are suffering this problem since 8 PM CEST. Can we help you with any kind of test or sending you any logs? Environment: node.js. We have the development environment running on internal infrastructure at Spain and the production environment running on Azure (North Europe)

advl03 avatar Jul 25 '17 20:07 advl03

This should be updated on the status page, perhaps? Azure Bot Service shows green right now, despite the "service interruption" https://azure.microsoft.com/en-us/status/

joshftx avatar Jul 25 '17 20:07 joshftx

We all know that it is still in Preview, but, for those who have their Bots under BotFramework infraestructure... how do you explain this downtime to your customers?

RodrigoRVieira avatar Jul 25 '17 20:07 RodrigoRVieira

Same here, our bot stop working suddenly. We are using Slack and Teams and both are affected.

bilby91 avatar Jul 25 '17 21:07 bilby91

+1

sureshgururajan avatar Jul 25 '17 21:07 sureshgururajan

Same problem. Slack, Telegram, Skype version - error 400.

DmitryZemlyuk avatar Jul 25 '17 21:07 DmitryZemlyuk

Our certificate was expired and took me an hr to actually figure out this was the problem. Yes, same problems here.. 2 bots, all channels. Theres no indication on the Channels page either..

YiMeChen avatar Jul 25 '17 21:07 YiMeChen

seems to be back!

YiMeChen avatar Jul 25 '17 21:07 YiMeChen

Yes, I can see my bot is working correctly =) But how long it can work normally?

DmitryZemlyuk avatar Jul 25 '17 21:07 DmitryZemlyuk

The incident has been resolved, bots should be back to normal activity now.

nwhitmont avatar Jul 25 '17 21:07 nwhitmont

My bot is still not replying?

xjose97x avatar Jul 25 '17 21:07 xjose97x

@stevengum97 / @nwhitmont - Any further information on what caused this outage please?

Any alternatives we, as users of the SDK could have pursued during the service interruption?

v46 avatar Jul 25 '17 21:07 v46

My bots are working now ...

premaarya avatar Jul 25 '17 21:07 premaarya

Notice last message says: Error sending to bot

This issue happens on all channels except emulator. I'm even remote debugging to my azure app service, and bot framework is not sending the activities to it. Image of errors

xjose97x avatar Jul 25 '17 21:07 xjose97x

@nwhitmont

xjose97x avatar Jul 25 '17 21:07 xjose97x

@xjose97x

Please open a new issue. (The underlying problem related to #3197 has been resolved.)

EricDahlvang avatar Jul 25 '17 22:07 EricDahlvang

@EricDahlvang , the thing is that my bot was working fine until this issue appeared, and since then, it has not been working.

xjose97x avatar Jul 25 '17 22:07 xjose97x