This is a migrated thread and some comments may be shown as answers.

JSON not being parsed

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 21 Feb 2017, 03:05 PM

I have this weird issue where the response from my API call is not giving me the option to view it as JSON under the Body tab. I have confirmed that the server is returning Content-Type: application/json, and when I use Fiddler for the exact same call it parses the reply as JSON.

This is the request in raw format:

Content-Type: application/json
User-Agent: Telerik Test Studio for APIs
Host: www.scorpio-concepts.co.za
Content-Length: 53
Expect: 100-continue
Connection: Keep-Alive
 
{
    "email": "foo@bar.com",
    "password": "f00b@r"
}

This is the raw reply from the server:

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Length: 24
Content-Type: application/json
Date: Tue, 21 Feb 2017 14:57:50 GMT
Server: Apache/2.4.10 (Debian)
 
{"error":"Auth Failure"}

 

Anybody got any clue? I tested using the sample app and project, and there it seems to work, so I don't think it's related to a missing library or anything.

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 24 Feb 2017, 12:12 PM
Hi Sebastian,

Thank you for contacting us.

It seems to be a known issue logged in our system. The problem here is that according to the request url the response is recognized as a file and not visualized in the body. As a workaround you could use the "Open" button in the body as shown on the attached screenshot.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or