Skype Calling bot gives Internal Server Error
I'm using the project template from https://docs.botframework.com/en-us/csharp/builder/sdkreference/calling.html for building a skype calling bot. I published the bot as an azure site and registered it in the bot framework developer portal and then added it type skype for windows desktop 8.1 (v 7.26). When I type the echobot works correctly. When I start a call however, the bot replies with 'You can't talk to this Bot just yet. But we are working on it'. When debugging the azure site I get a response: {StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.ObjectContent`1[[System.Web.Http.HttpError, System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Headers: { Content-Type: application/json; charset=utf-8 }} in ProcessCallingEventAsync()
Is there something I'm missing or doing wrong or is the Calling bot sample not ready to be demoed yet? We want to show this to a client this week, will this/my issue be fixed shortly?
Could you check if your calling webhook is configured correctly on the portal? Could you also share the bot Id please?
My BotId is 5CACallingBotDemo and my callback hook is https://5cacallingbotdemo.azurewebsites.net/api/calling/call
It is working now. I reset the callback hook several hours ago, maybe that was the solution.
Great. Thanks for the update!
I am facing a similar issue. Does it take time for the calling feature to come up ?
No it should not take more than a couple of minutes to propagate. Is your call back even getting hit?
Hi ,
Thanks for your help. It is working now . I had not specified the call back in my web.config.
Thanks Jignesh
On Tue, Nov 22, 2016 at 8:21 PM, KrishnanA [email protected] wrote:
No it should not take more than a couple of minutes to propagate. Is your call back even getting hit?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/940#issuecomment-262260654, or mute the thread https://github.com/notifications/unsubscribe-auth/AWj6MAg7SmdAD1QVpNNprBOQ7Woi1RLtks5rAwF8gaJpZM4Je_CE .
Great. Thanks for confirming.
Hello, I am having the same issue, and I am just using the template. My current setup is as follows (I am currently using ngrok to expose my locally running Bot trough the Internet):
- I have the CallbackUrl specified on the web.config:
<add key="Microsoft.Bot.Builder.Calling.CallbackUrl" value="http://MY-NGROK-DOMAIN/api/calling/callback" />
- In CallingController.cs I have:
[Route("callback")]
public async Task<HttpResponseMessage> ProcessCallingEventAsync()
{
return await CallingConversation.SendAsync(Request, CallRequestType.CallingEvent);
}
[Route("call")]
public async Task<HttpResponseMessage> ProcessIncomingCallAsync()
{
return await CallingConversation.SendAsync(Request, CallRequestType.IncomingCall);
}
And on top of the class definition:
[RoutePrefix("api/calling")]
- In the Skype Channel configuration, I have the following calling webhook:
- I have ngrok running on port 12345 and I have configured my project to run on that port, as well as to accept (via applicationhost.config), external connections on port 12345. Firewall is allowing connections through it as well.
My issue: same as the guys above, whenever I call the bot from Skype, the voice says 'You can't talk to this Bot just yet. But we are working on it', and on ngrok I receive a 500 Internal Server Error when it tries to make a POST to /api/calling/callback (and if I debug it dies inside the ProcessCallingEventAsync after re-entering a couple of times).
Any help?
It is weird because both the call and callback endpoints are being called. First the api/calling/call one, and then the api/calling/callback, which is called three times until it fails and the voice speaks the message described above.
I was thinking that it could be related to something with http and https, (call endpoint is configured as https in Bot Framework and is hosted as http locally).. But that's still weird because both call and callback endpoints are being called
Can you try running it on Azure instead of ngrok? Does that resolve the issue?
Have you tried posting to the webhook that you have configured on Bot Framework to see if your web service gets invoked?
Thanks Krishnan
Could you also ensure that the call back URL in web.config is the appropriate https URL?
Thanks Krishnan
Yes, it was that. Callback in webconfig was in http instead of https!
Now I have something like:
<add key="Microsoft.Bot.Builder.Calling.CallbackUrl" value="https://6719abe7.ngrok.io/api/calling/callback" /> and it works.
Thanks :)
Same issue here. Works neither with NGrok nor on Azure. All settings are fine (MicrosoftAppId/MicrosoftAppPassword set, Microsoft.Bot.Builder.Calling.CallbackUrl set to HTTPS et al).
Webhook URLs do not get hit at all (both NGrok and Azure). I tried manually hitting the NGrok Url (https://abcxyz.io/api/calling/call) thru Fiddler and it gets hit. But when I make a call on Skype, it does not get hit. No failed traces on Azure either.
Also, the documentation here seems to be incorrect. It says the new URL should look like this: https://78191649.ngrok.io/v1/call Shouldn't it be https://78191649.ngrok.io/api/calling/call as per the example given?