Hi Support,
Iám using the JSON/XML option within NEOLOAD. Now the requests and responses are formatted into an XML tree; however for a certain requedt/response i got an error like:
Error detected by NeoLoad
Error Code: NL-JSON-02 Message: Error while decoding JSON response. Details: Unrecognized token 'for': was expecting at [Source: java.io.StringReader@154b071a; line: 1, column: 4]
Please refer to the documentation for further details and advice
Request:
----------------------------------------------------------------------------
POST http://lx303253.cibapp.nl:8080/runtime/server/vaadin/sess... HTTP/1.1
Origin: http://lx303253.cibapp.nl:8080
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Content-Type: text/plain;charset=UTF-8
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Connection: keep-alive
Referer: http://lx303253.cibapp.nl:8080/runtime/VAADIN/widgetsets/...
Host: lx303253.cibapp.nl:8080
Cookie: JSESSIONID=L4cnG5Mv-zwaAQs+bL6EYfVl
Content-Length: 5
init
----------------------------------------------------------
Can I disable for a certain request the JSON/XML encode/decode; or "transform" the request to a standard request without using this option. But of course a prefer a solution ;-)
Regards,
Arjan
The JSON/XML option is global to the project so you can't choose which requests will be converted to XML format.
The issue you have is that your JSON response does not have a valid JSON content.
You can validate the content of your response on online JSON validators.