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

Getting 401 unauthorised response

Open pandubalraj opened this issue 10 years ago • 9 comments

Hi, I have created a bot application using NodeJS SDK. I deploy the application in azure with default azure url http://tschatterbot.azurewebsites.net. And the url is working fine with https://tschatterbot.azurewebsites.net with HTTPS

I am getting "Accepted" response from the Test connection to you bot in https://dev.botframework.com page.

When I embed the code in web chat. I am not getting any response. I gave the correct secret and code.

I tried to get the response from the emulator using ngrok. I am getting 401 unathorized in the emulator. Please find the attached image.

Thanks in advance for your valuable solution.

emulator

pandubalraj avatar Sep 12 '16 06:09 pandubalraj

Same Problem Facing in C# When sending some request in Emulator It not wrking and giving error like 401 Unauthorised Please help image

inornos avatar Sep 12 '16 11:09 inornos

Hi @pandubalraj, and @inornos, have you followed the steps in the auth troubleshooting guide, and specifically the instructions in Step 2?

https://docs.botframework.com/en-us/support/troubleshooting-bot-framework-authentication/

dandriscoll avatar Sep 12 '16 14:09 dandriscoll

Hi @dandriscoll,

Thanks for your step. I have rectified the issue. The issue occurs due to invalid Microsoft APP ID & APP Password. I have created a new one and the issue is resolved by giving the proper endpoint url with proper 'https' url.

@inornos, please check your app id and password and its configuration in the C#. I hope that will rectify your problem.

pandubalraj avatar Sep 13 '16 03:09 pandubalraj

Now it running on in my local machine But when i publish project on my domain it not working its giving me this error **

Could not load file or assembly 'stdole' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

**

image

inornos avatar Sep 13 '16 13:09 inornos

Hi @dandriscoll .My bot works fine in the emulator,even with Microsoft app id and password but when I'm testing it at https://dev.botframework.com i get a message "couldn't send message retry".I get a 401 unauthorized error when I'm trying to get a reply from the emulator with bot url https://botwebdeployment.azurewebsites.net/ (deployed in azure).I have added my bot in microsoft bot directory and have enabled skype .But even on my machine i can send message on skype app to bot but i don't get any reply. 401 error1

Chetanchezz avatar Jul 22 '17 16:07 Chetanchezz

Very strange, but started having the same issue. Any help?

nicksav avatar Sep 19 '17 06:09 nicksav

Same issue here @Chetanchezz.

Cley-94 avatar Oct 17 '18 18:10 Cley-94

Same issue @Chetanchezz @nicksav

iantje31 avatar Nov 15 '18 14:11 iantje31

This is a closed issue. Please open a new issue on the repository for the sdk you are using, or ask a question on StackOverflow: https://stackoverflow.com/questions/tagged/botframework https://github.com/Microsoft/botbuilder-js https://github.com/Microsoft/botbuilder-dotnet

EricDahlvang avatar Nov 15 '18 19:11 EricDahlvang