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

[Direct Line] Getting 500, 502 and 503 status codes a lot?

Open alexandruf opened this issue 8 years ago • 18 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.11.0
  • Active Channels: DirectLine
  • Deployment Environment: Azure Bot Service, local development with Emulator

Issue Description

Today I experience some problems with directline API More than 50% of time is like this: POST https://directline.botframework.com/v3/directline/conversations/LWNUQxx9nVADbdBevnehbm/upload?userId=c3463c3d-4238-4d0a-9cbd-c03352cb2059 500 (Internal Server Error) Failed to load https://directline.botframework.com/v3/directline/conversations/LWNUQxx9nVADbdBevnehbm/upload?userId=c3463c3d-4238-4d0a-9cbd-c03352cb2059: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'XXXX' is therefore not allowed access. The response had HTTP status code 500.

alexandruf avatar Jan 22 '18 14:01 alexandruf

Same here, today it is quite unstable

droidpl avatar Jan 22 '18 15:01 droidpl

@alexandruf @droidpl Thanks for reporting. I have escalated the issue to our platform team for investigation.

nwhitmont avatar Jan 22 '18 17:01 nwhitmont

Hey guys - We have found the issue and have a hotfix scheduled to rollout today.

nwhitmont avatar Jan 22 '18 18:01 nwhitmont

Great! Thank you!

alexandruf avatar Jan 22 '18 18:01 alexandruf

Great. Let us know when is it deployed. I will verify how it affects also the issue I have opened in https://github.com/Microsoft/BotBuilder/issues/4066

droidpl avatar Jan 23 '18 09:01 droidpl

@nwhitmont do you have any news? Today is kinda worse than yesterday

alexandruf avatar Jan 23 '18 13:01 alexandruf

I have similar issues today. Major worry! Any news?

fireblade95402 avatar Jan 23 '18 16:01 fireblade95402

Still happening today, i guess hotfix does not work as expected.

rfermontero avatar Jan 25 '18 11:01 rfermontero

Same here. We are experiencing long delays (>1 minute) and messages lost using direct line.

ruicampos avatar Jan 25 '18 14:01 ruicampos

Hey guys, we would really appreciate an official answer on this. Directline is not reliable these days. Thank you in advance!

alexandruf avatar Jan 25 '18 17:01 alexandruf

We believe that Direct Line has stabilized but there are still occasional problems related to load. These impact certain datacenters more than others, so to address specific problems we need to know times (in UTC please) and conversation ids, if available.

vincec-msft avatar Jan 31 '18 15:01 vincec-msft

Hi @vincec-msft, check the details I provided in https://github.com/Microsoft/BotBuilder/issues/4066. It includes also the logs of what happens in the server and the post we send. Also a conversation id. My UTC is +0

droidpl avatar Feb 01 '18 09:02 droidpl

I have the same problem, it shows error 502 in diretline, https://prnt.sc/iwzz4j

How to fix this!

artonh avatar Mar 28 '18 08:03 artonh

See https://docs.microsoft.com/en-us/azure/bot-service/bot-service-troubleshoot-general-problems#what-causes-the-direct-line-30-service-to-respond-with-http-status-code-502-bad-gateway

"Direct Line 3.0 returns HTTP status code 502 when it tries to contact your bot but the request does not complete successfully. This error indicates that either the bot returned an error or the request timed out. For more information about errors that your bot generates, go to the bot's dashboard within the Bot Framework Portal and click the "Issues" link for the affected channel. If you have Application Insights configured for your bot, you can also find detailed error information there."

vincec-msft avatar Mar 28 '18 14:03 vincec-msft

The original report and follow-up issues have been resolved.

vincec-msft avatar Mar 28 '18 14:03 vincec-msft

I solved that, my Microsoft.Bot.Builder/Connector it was version 3.14.0.7, I updated to 3.14.1.1 because it was a bug in 3.14.0.7 for that....

So now is good, thank you!

artonh avatar Mar 28 '18 14:03 artonh

Hi there!

I'm getting since yesterday '[503] Service Unavailable' quite often from directline...any news MS side?

Thanks

Squashy83 avatar Jun 14 '18 07:06 Squashy83

Yes, Direct Line had an outage tonight. It should be mitigated now. Updates here: https://azure.microsoft.com/en-us/status/

vincec-msft avatar Jun 14 '18 10:06 vincec-msft