` var url = this.buildUrl(path, pathParams);
var request = superagent(httpMethod, url);
request.type('application/json');
....
request.end((error, response) => {
if (callback) {
var data = null;
if (!error) {
try {
data = this.deserialize(response, returnType);
if (this.enableCookies && typeof window === 'undefined') {
this.agent.saveCookies(response);
}
} catch (err) {
error = err;
}
}
callback(error, data, response);
}
});`
Usually this code works fine. But when return type is 'String' it returns "Error: Parser is unable to parse the response".
I captures response frame by wireshark, it seems no problem .
I don't know what's wrong
my script file as follows
` var url = this.buildUrl(path, pathParams); var request = superagent(httpMethod, url);
Usually this code works fine. But when return type is 'String' it returns "Error: Parser is unable to parse the response". I captures response frame by wireshark, it seems no problem .
I don't know what's wrong