question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for bot error HTTP status code

See original GitHub issue

Direct 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:open
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
watadarkstarcommented, Nov 7, 2018

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.

0reactions
watadarkstarcommented, Dec 15, 2018

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found