Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bot Framework always getting unauthorized response

Tags:

botframework

I started using Microsoft Bot Framework and followed step by step all tutorials. I has been able to register a new bot and to deploy it working good with emulator, but except it nothing else works. Test connection to your bot chat do not works despite I get answer from emulator and from all connected channels, that where created and registered properly I always get an Unauthorized response or something like that, anyway no response, so nothing works. I tried with Twilio, Web Chat, Telegram (Skype auth is pending) getting always the same response. As it seems I strictly followed the tutorials, is there something else to do or to be approved? Or just the service is still not working at 100% as too young?

Thanks

like image 231
Jano Avatar asked Mar 31 '16 15:03

Jano


2 Answers

If you are using HTTP you need to disable basic auth because the connector won't send your appSecret in the clear.

The solution is to make sure you register as HTTPS, or if you need to use HTTP then disable the basic auth.

like image 104
T Laird-McConnell Avatar answered Oct 12 '22 11:10

T Laird-McConnell


Took me a while to get it working locally too. Oddly for me it only works when those 'secret' fields are empty, as mentioned and running in debug. Running without debugging seems to always result in a 401

like image 43
PaulTheCyclist Avatar answered Oct 12 '22 13:10

PaulTheCyclist