Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Console does not display response, it shows message Error parsing JSON data #10

Open
2 of 8 tasks
carobazan opened this issue Apr 17, 2017 · 1 comment
Open
2 of 8 tasks

Comments

@carobazan
Copy link

Description

There's an issue with the JSON viewer in some cases

Expected outcome

Actual outcome

Live Demo

Steps to reproduce

  1. Open attached api in console:
    testSecurity.zip
  2. Select method /testScuredByBasic, click Try it
  3. Enter required authentication, header and parameters values
  4. The response is not shown : should be something like in previous version:

screen shot 2017-04-17 at 12 57 05 pm

instead, an error is displayed:

There was an error parsing JSON data

Unexpected token O in JSON at position 0

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@jarrodek
Copy link
Contributor

This is correct behavior.

Server declared response as a application/json but the response structure is invalid. Therefore it can't be displayed ("OK" is not valid JSON).

Though, console should display "raw" response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants