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

Not receiving any response in Skype and Facebook channels - Web chat works

Open AnithaJothi opened this issue 9 years ago • 2 comments

I have developed a bot using the C# Bot Builder SDK (Bot builder version 3.5.2) and deployed it on Azure. This runs successfully on the Emulator as well as the web chat channel. I have enabled it in Skype and Facebook channels and in those channels the bot doesn't respond. I have tried unregistering and re-registering too in both the channels, however that didnt help either. In addition I have verified Facebook Page Id, App ID, App secret, page access token. All are correct.

Facebook - The bot does not respond at all Skype - The bot says typing for sometime and then stops. No further response.

On verifying the errors on the Bot configuration page it displays the below error for both facebook and skype channels. "There was an error sending this message to your bot: HTTP status code InternalServerError" I enabled Application insights and monitored the errors using Live Metrics stream and found the below.

Facebook - Looks like the bot sends 500 response code for Facebook. Skype - A 500 response code but after an outgoing command - not sure what that meant (screenshot of failure below) image

My Bot ID - anithas_test_bot

Note - This bot was working fine in Facebook till yesterday. I made a few changes to the bot to store and retrieve User data in to the state and redeployed and doesn't seem to work ever since. Assumed it might be due to my changes and reverted them and even then the same problem.

Is there a way i can debug the FB/Skype channels from my code? Any other debugging tips/suggestions? I seem to be kind of stuck and any help is much appreciated!!

AnithaJothi avatar Feb 20 '17 08:02 AnithaJothi

Hi Anitha, I am facing the same problem. Have you found any solution yet ?

Ashish-Mahalka avatar Feb 22 '17 05:02 Ashish-Mahalka

https://docs.botframework.com/en-us/technical-faq/#how-can-i-troubleshoot-my-bot has some tips, but in particular, it sounds like your bot's web service is throwing an unhandled exception which leads to a 500 error http status code. You might consider attaching a debugger or using something like App Insights.

willportnoy avatar Mar 09 '17 23:03 willportnoy