[Direct Line] Bot not responding to user messages. Giving Directline error : "[500] Internal Server Error"
Bot Info
- SDK Platform: NodeJS
- SDK Version: 3.12.0
- Active Channels: Direct Line, Facebook
- Deployment Environment: Manual deployment in VMs of Azure IaaS
- Region of bot deployment: West Europe
Issue Description
Bot suddenly stopped working. It is not responding to user messages randomly. Showing below errors in logs:
Error: Request to 'https://directline.botframework.com/v3/conversations/<some-id>/activities/<some-id>' failed: [500] Internal Server Error
at Request._callback (/usr/src/app/node_modules/bot-services/node_modules/botbuilder/lib/bots/ChatConnector.js:535:46)
at Request.self.callback (/usr/src/app/node_modules/bot-services/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:194:7)
at Request.<anonymous> (/usr/src/app/node_modules/bot-services/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:191:7)
at IncomingMessage.<anonymous> (/usr/src/app/node_modules/bot-services/node_modules/request/request.js:1091:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Code Example
Reproduction Steps
Expected Behavior
Actual Results
Got the same issue, since few days (and the migration to Microsoft Server) we have A LOT of issues
- That 500 exception
- We received 10x the same message
- Missing ServiceURL (https://github.com/Microsoft/BotBuilder/issues/3905)
Same issue for me as well.
Same for me, baad situation. I did not migrate anything yet, my bots are hosted in our company's private infrastructure.
Same for me as well. When will this be resolved?
Same issue here with DirectLine:
Failed to load https://directline.botframework.com/v3/directline/conversations/XXXXXXXXXXX/activities: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'XXXXXXXXXXXX' is therefore not allowed access. The response had HTTP status code 500.
Same for me as well. When will this be resolved?
It also happens to me. It is quite annoying
Our production bot (registration bot with our own hosted bot service) has gone down with exact same error suddenly a few hours ago. The bot service is deployed in West Europe. Please help and suggest the time it will take to be back...
Same for me.
To add more info, the issue can be reproduced directly at https://dev.botframework.com in the Test section, when you talk to the bot, the same problems are reflected in the console.
Since a few hours ago, we are getting the same random 500 errors in our production bot, plz could some Microsoft guy tell us what is going on?
SDK Platform: NodeJS
SDK Version: 3.13.1
Active Channels: Direct Line
Deployment Environment: WebApp in Azure
Region of bot deployment: West Europe
Thanks for the reports, we are investigating and will get back with an update as soon as possible. I apologize for any inconvenience. Henrik
In my case, the error is a 500 error too, but slightly different:
Error: POST to 'https://directline.botframework.com/v3/conversations/Aq2B7eFov1wKgiPwlx6gwd/activities/Aq2B7eFov1wKgiPwlx6gwd%7C0000013' failed: [500] Internal Server Error
at Request._callback (D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:545:46)
at Request.self.callback (D:\home\site\wwwroot\node_modules\request\request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (D:\home\site\wwwroot\node_modules\request\request.js:1163:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (D:\home\site\wwwroot\node_modules\request\request.js:1085:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
Update: We found the problem and have implemented a fix.
Performance should be improving now.
@nwhitmont Thanks for your support in releasing the fix. Our Bot is alive again in production.
@sharmadine Thanks for the update! Glad to hear it resolved your issue.
@bhushanvadgave The issue has been mitigated - Can you confirm the issue is resolved from your end?
Seems to work now. Thanks!
@nwhitmont Yes, I don't see any issue now. The bot is responding to the messages. Thanks for fixing this.
The issue seems to be resolved; our bot is responding consistently again.