microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.5k stars 2.44k forks source link

[Skype for Business] Bot doesn't respond due to server runtime error #3758

Closed ghost closed 6 years ago

ghost commented 7 years ago

Bot Info

App ID: 9ae4f666-de28-4f25-bbd0-6c8b146d717e SDK Platform: Rest API Active Channels: Cortana, Skype for Business Deployment Environment: Losant

Issue Description

Failure to deliver response back to Skype for Business client. Was working but has stopped and now Bot engine reports error from Skype Online serviceUrl.

Reproduction Steps

Bot registered as CsOnline application endpoint. Error can only be seen on our Losant platform where the Bot login resides.

Expected Behavior

User gets expected response from Bot.

Actual Results

Error returned when sending response back to serviceURL.

serviceURL received in message body:

https://webpoolbl20r04.infra.lync.com/platformservice/tgt-2b944806abf558c08c6194d30c1b514a/botframework

error received: statusCode 400

<!DOCTYPE html>\r\n\r\n \r\n Runtime Error\r\n <meta name=\"viewport\" content=\"width=device-width\" />\r\n \r\n \r\n\r\n <body bgcolor=\"white\">\r\n\r\n

Server Error in '/PlatformService' Application.

\r\n\r\n

Runtime Error

\r\n\r\n <font face=\"Arial, Helvetica, Geneva, SunSans-Regular, sans-serif \">\r\n\r\n Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.\r\n

\r\n\r\n Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

\r\n\r\n <table width=100% bgcolor=\"#ffffcc\">\r\n \r\n \r\n
\r\n\r\n<!-- Web.Config Configuration File -->\r\n\r\n<configuration>\r\n    <system.web>\r\n        <customErrors mode="Off"/>\r\n    </system.web>\r\n</configuration>
\r\n\r\n \r\n \r\n \r\n\r\n
\r\n\r\n Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

\r\n\r\n <table width=100% bgcolor=\"#ffffcc\">\r\n \r\n \r\n
\r\n\r\n<!-- Web.Config Configuration File -->\r\n\r\n<configuration>\r\n    <system.web>\r\n        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>\r\n    </system.web>\r\n</configuration>
\r\n\r\n \r\n \r\n \r\n\r\n
\r\n\r\n \r\n\r\n

vijaysaimutyala commented 6 years ago

I've a similar scenario where in the Skype for Business bot which is in the middle of a conversation fails to respond with a 400/401 error. It's very inconsistent. Not sure whats causing the 400/401 error as I faintly remember that the token is alive for almost 30 minutes.

sgellock commented 6 years ago

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.

From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.

As part of this restructuring, we are closing all tickets in this repo.

For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here: https://github.com/microsoft/botbuilder-v3/issues

For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here: https://github.com/microsoft/botframework-services/issues

For product behavior, how-to, or general understanding questions, please use Stackoverflow. https://stackoverflow.com/search?q=bot+framework

Thank you.

The Bot Framework Team