Support for bot error HTTP status code
See original GitHub issueDirect Line now returns an httpStatusCode
field in the error JSON accompanying HTTP 502s caused by bot timeouts/errors. Is it possible to wire this up so clients have an easy time seeing the bot’s HTTP status code?
Example below illustrates a bot returning HTTP 404.
HTTP/1.1 502
...
{
"error": {
"code": "ServiceError",
"message": "Failed to send activity: bot returned an error"
},
"httpStatusCode": 404
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top Results From Across the Web
There was an error sending this message to your bot
In the channels tab of my bot on the azure portal It's showing the error "There was an error sending this message to...
Read more >There was an error sending this message to your bot: HTTP ...
I have a chatbot in production, and yesterday I've had some issues regarding exceptions being thrown within the chatbot, resulting in the "Sorry ......
Read more >"There was an error sending this message to your bot: HTTP ...
I have faced the same issue while creating "Web App Bot" with custom password option, sometimes this option will fail.
Read more >Error Code - 华为云
Status Code Error Code Error Message
401 CBS.0000 The user does not have the OBT permission.
401 CBS.0011 Authentication failed.
401 CBS.0012 Authentication information is missing....
Read more >A Complete Guide and List of HTTP Status Codes
400s: Client error codes indicating that there was a problem with the request. 500s: Server error codes indicating that the request was accepted ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try my best! 💪 I still don’t fully understand what the retry id is telling me half the time, but I’ll propose a PR with what I think would be a better solution.
In our app we have a fork that has something like this to get better error information: https://github.com/Microsoft/BotFramework-DirectLineJS/pull/115