New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot V3 Forbidden #625
Comments
This should work, I guess :
Hope it helps anyway :) ! |
@albhardy There are some relevant known issues:
if you are upgrading, you may need to switch to an endpoint with https. Consider letsencrypt + ngrok for local testing, I've found the Emulator to be pretty broken, but its unclear to me if thats just me not getting the new version. I suspect the implementation of this new secrete has required https, and ChatConnector is refusing to authenticate with your appId and appPassword in plain text, if you figure out how to get it working let me know ; ) |
Thanks for the reply - The reason I updated AppId into MicrosoftAppId is because of similar issue in SO: http://stackoverflow.com/questions/38278975/bot-framework-v3-unauthorized and I'm aware issue of Emulator v3. However, I post the issue is because I could not get "Test Connection to my Bot" in https://dev.botframework.com/ working after I push my code into Azure Apps and used https connection. I'm not sure what else to look out for. The deployment is successful - I could actually get static page displayed by using following code:
|
Apparently appId and appPassword are correct keys - I manage to (briefly) obtain following: But, pressing test again will result in I'm kinda stuck here because Bot Framework registration by default insists on V3 (No longer allow V1) - but deploying V3 just result in this single Forbidden error. Not sure if this is framework issue or the way I deploy on Azure apps is wrong (I just use Deployment Source and set the Env variables) |
It might be Framework issue as reported in #631 - I could confirm that the bot is working on Telegram Channel but not on Skype |
@albhardy the correct fields you should be setting are |
Can confirm there is a bug somewhere upstream. I've set up the environment on localhost ngrok When testing connection to the bot using the web UI (as albhardy screenshot), it randomly switches between "Accepted" and "Forbidden" I clicked it around 10 times, gets around 4 "Forbidden". There might be a load balancer somewhere that is directing requests to servers that rejects the access_token. it is not a problem with the SDK |
EC2 also have this issue. Nothing happen when test with ngrok. |
I'm also having similar issues. However when trying our different things, I noticed the following: When the app is hosted on a shared Azure instance (F1 Free or D1 Shared), then the channels randomly can't connect and I get "ERROR: ChatConnector: receive - invalid token. Check bots app ID & Password." from my bot app (node). I also get random Forbidden / Accepted from the test button. When I scale up to a B1 Basic or above, everything works fine. So if you're running into the connection issue, check what kind of instance you're running on and try scaling up. |
I just opened an issue this morning that is related to this. I am linking it here because I believe it may provide a reason for why this is occurring #742 |
This should be fixed in 3.1.1. |
Following code works locally, but I kept receiving "403 Forbidden" message after I deployed the code on Azure web apps. I'm pretty sure I've configured MICROSOFT_APP_ID and MICROSOFT_APP_PASSWORD in Azure Application Settings correctly (including restarting the server). Am I missing something here?
The text was updated successfully, but these errors were encountered: