0
votes

I have deployed my bot on a remote windows server 2012r2 and when i try to connect with it using emulator, it gives me the error Refresh access token failed with status code: 401

I have followed all the steps discussed here and used a web deploy method to deploy. how to publish bot framework c-sharp code to windows server 2012r2

1
401 indicates an authentication failure. Have you got a) the bot Id and password conrrectly configured on the server and emulator b) configured ngrok and c) checked you can access the bot via HTTP? - stuartd
@startd yes, it was because of incorrect passwords. Note: do not copy passwords directly from emulator - Ehsan Ul Haq

1 Answers

2
votes

I figured it out, it was because of incorrect password. I was copying it directly from the emulator. So yes, after putting correct ID and Password it went away. Thanks