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.

Response body and headers are not displayed for errors

See original GitHub issue

2017-05-05-183124_640x993_scrot

This happens with responses with code 500 and 422 (and maybe others).

Steps to reproduce:

  1. Go to http://petstore.swagger.io/

  2. Place an order for a pet (POST /store/order) with the following request body

    {
        "id": 0,
        "petId": 12321312312312312,
        "quantity": -1,
        "shipDate": "asdasdasd",
        "status": "asdasdas",
        "complete": 12312312
    }
    

Probably related to #3021.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:20
  • Comments:39 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
jiyonghongcommented, May 16, 2017

+1

5reactions
yuricamaracommented, Jun 8, 2017

Same here, @dario30186 .

Folks, Do you agree that this issue is the most important of all that you have with Swagger-UI? For me, yes. In overall Swagger UI is so great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rest error message in HTTP Header or Response Body?
Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it...
Read more >
How to troubleshoot the error "Failed to process response ...
The error is correct, the service did not receive any response headers or data. The key to help confirm this is to increase...
Read more >
Content-Disposition - HTTP - MDN Web Docs
As a response header for the main body. The first parameter in the HTTP context is either inline (default value, indicating it can...
Read more >
HTTP status and error codes for JSON | Cloud Storage
Error responses usually include a JSON document in the response body, ... try to list the buckets for a project but do not...
Read more >
Responses - Everything curl
It is important to note that curl does not consider it an error even if the response code would indicate that the requested...
Read more >

github_iconTop Related Medium Post

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