Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Altair does not render JSON for non-2xx responses. #2190

@h-barthwal

Description

@h-barthwal

Describe the bug
Altair does not render the response JSON nicely when a GraphQL response comes with a non-200 http status code.

To Reproduce
Steps to reproduce the behavior:

  1. Send a request to any GraphQL API that would return a non-200 http code for that request.
  2. The response JSON will be rendered as a string on the right pane.

Expected behavior
The response JSON should be rendered exactly like it is done for 200 responses.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Platform: Desktop app
  • Version: 5.0.24

It would be nice if the error JSON was also rendered as a JSON and not as a string. It would let the users of the API to understand the error more easily.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions