Response body and headers are not displayed for errors
See original GitHub issue
This happens with responses with code 500 and 422 (and maybe others).
Steps to reproduce:
-
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 }
- swagger-ui version: 3.0.8
- a swagger file reproducing the issue: http://petstore.swagger.io/v2/swagger.json
Probably related to #3021.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:20
- Comments:39 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top 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

+1
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.