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

[Direct Line] Bot not responding to user messages. Giving Directline error : "[500] Internal Server Error"

Open bhushanvadgave opened this issue 8 years ago • 27 comments

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

bhushanvadgave avatar Dec 18 '17 10:12 bhushanvadgave

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)

JpEncausse avatar Dec 18 '17 10:12 JpEncausse

Same issue for me as well.

Highvolt avatar Dec 18 '17 11:12 Highvolt

Same for me, baad situation. I did not migrate anything yet, my bots are hosted in our company's private infrastructure.

zubcomandante avatar Dec 18 '17 11:12 zubcomandante

Same for me as well. When will this be resolved?

NitishDeshpande avatar Dec 18 '17 11:12 NitishDeshpande

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.

jesus-seijas-sp avatar Dec 18 '17 11:12 jesus-seijas-sp

Same for me as well. When will this be resolved?

DyzLecticus avatar Dec 18 '17 11:12 DyzLecticus

It also happens to me. It is quite annoying

droidpl avatar Dec 18 '17 12:12 droidpl

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...

sharmadine avatar Dec 18 '17 12:12 sharmadine

Same for me.

MultipleAs avatar Dec 18 '17 13:12 MultipleAs

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.

jesus-seijas-sp avatar Dec 18 '17 13:12 jesus-seijas-sp

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

DanielTizon avatar Dec 18 '17 14:12 DanielTizon

Thanks for the reports, we are investigating and will get back with an update as soon as possible. I apologize for any inconvenience. Henrik

HenrikFrystykNielsen avatar Dec 18 '17 15:12 HenrikFrystykNielsen

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)

DanielTizon avatar Dec 18 '17 15:12 DanielTizon

Update: We found the problem and have implemented a fix.

Performance should be improving now.

nwhitmont avatar Dec 18 '17 16:12 nwhitmont

@nwhitmont Thanks for your support in releasing the fix. Our Bot is alive again in production.

sharmadine avatar Dec 18 '17 18:12 sharmadine

@sharmadine Thanks for the update! Glad to hear it resolved your issue.

nwhitmont avatar Dec 18 '17 19:12 nwhitmont

@bhushanvadgave The issue has been mitigated - Can you confirm the issue is resolved from your end?

nwhitmont avatar Dec 18 '17 19:12 nwhitmont

Seems to work now. Thanks!

xjose97x avatar Dec 18 '17 22:12 xjose97x

@nwhitmont Yes, I don't see any issue now. The bot is responding to the messages. Thanks for fixing this.

bhushanvadgave avatar Dec 19 '17 03:12 bhushanvadgave

The issue seems to be resolved; our bot is responding consistently again.

DyzLecticus avatar Dec 19 '17 08:12 DyzLecticus