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

500 server error using facebook

Open tpowellmeto opened this issue 9 years ago • 27 comments

Bot Info

  • Bot handle: informatics-lab-sol
  • App ID: c0dd83ca-0370-4310-96a6-c418c924870f
  • SDK Platform: Node.js
  • SDK Version: 3.9.1
  • Active Channels: Facebook
  • Deployment Environment: aws ec2

Issue Description

My service is returning 500s constantly

Error: Request to 'https://state.botframework.com/v3/botstate/facebook/users/1420943404688109' failed: [500] Internal Server Error

tpowellmeto avatar Sep 14 '17 17:09 tpowellmeto

I am experiencing the same thing. Is there a status page somewhere?

jeffhee avatar Sep 14 '17 18:09 jeffhee

I found this page, but it shows the service as being up.

https://azure.microsoft.com/en-gb/status/

jacobtomlinson avatar Sep 14 '17 18:09 jacobtomlinson

Same error 500 here. Like 3 hours ago, we started to have this kind of errors in both our development (own openstack servers) and production environments (azure North EU). Azure services status page does not show any alarm. Any help is appreciated...

advl03 avatar Sep 14 '17 18:09 advl03

Thanks for reporting this. We will investigate, and report back our findings asap.

(Note, the azure status page does not show Bot Framework connector status. We are working on a status page.)

EricDahlvang avatar Sep 14 '17 18:09 EricDahlvang

the service is up, but it keeps having the same issue.. Thanks Eric,hope we find it soon,because it was all of the sudden without any change..

KwstasBol avatar Sep 14 '17 18:09 KwstasBol

can you give us any more information?

tpowellmeto avatar Sep 14 '17 18:09 tpowellmeto

Would appreciate an update soon, as we have a release slated for later this afternoon that will be impacted...

yichengsun avatar Sep 14 '17 18:09 yichengsun

I have the exact same issue and this is a serious, high priority bug for our users. We have an enormous launch to thousands of people in just 2 hours...

I went into chatconnector.js and printed the body response back from Microsoft, and I get this

{ error: { code: 'ServiceError', message: 'Null properties cannot be encrypted. Please assign a default value to the property if you wish to encrypt it.' } } Error: Request to 'https://state.botframework.com/v3/botstate/facebook/users/2014981635209074' failed: [500] Internal Server Error at Request._callback (/app/node_modules/botbuilder/lib/bots/ChatConnector.js:514:46) at Request.self.callback (/app/node_modules/request/request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (/app/node_modules/request/request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage. (/app/node_modules/request/request.js:1091:12) at IncomingMessage.g (events.js:292:16) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9)

edgarw19 avatar Sep 14 '17 18:09 edgarw19

Likewise here. We have a user study and demo this afternoon. This is a very serious problem.

dan-cohn avatar Sep 14 '17 18:09 dan-cohn

We are actively investigating this. Will update when we have more details

JasonSowers avatar Sep 14 '17 18:09 JasonSowers

We're also experiencing the issue and its having a fairly large impact to us.

jphgross avatar Sep 14 '17 18:09 jphgross

ddos? Big brother, speak to us. ETA? Seems like SMS chat works, slack should not. Also guess it is on FB and Slack side.

sonnenhaft avatar Sep 14 '17 19:09 sonnenhaft

Looks like it has started working.

sagarpomal avatar Sep 14 '17 19:09 sagarpomal

Yes, confirmed. My dev and prod bots are working again! Thanks!

advl03 avatar Sep 14 '17 19:09 advl03

We were experiencing similar issues earlier; looks like things have settled now. Is there any change of getting a status page anytime soon?

tombarton avatar Sep 14 '17 19:09 tombarton

Oh wow, thank goodness, up and running 1.5 hours before our launch. Hopefully it's stabilized now.

edgarw19 avatar Sep 14 '17 19:09 edgarw19

Yes, thank you! Back up and running now. Any information on what caused this?

tpowellmeto avatar Sep 14 '17 19:09 tpowellmeto

There was an issue with null values in bot properties. We have done a rollback to fix the issue and are working on a hot fix to correct it permanently.

JasonSowers avatar Sep 14 '17 21:09 JasonSowers

Thank you everyone, for reporting this to us. Please open a new issue if you run into any new problems.

EricDahlvang avatar Sep 14 '17 22:09 EricDahlvang

Everyone please note: "By default, the Bot Framework SDK for .NET stores state data using the Bot Framework State service, which is intended for prototyping only and is not designed for use by bots in a production environment." https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-state

Please consider using the Azure Extensions, or implementing a custom state client: https://blog.botframework.com/2017/07/18/saving-state-azure-extensions/

Note: Bots using a custom state client did not experience these issues on September 15th.

EricDahlvang avatar Sep 18 '17 19:09 EricDahlvang