Closed giscafer closed 7 years ago
I want to Check the response in error block but it gives task.on("error", event => { console.dir(event); console.log(JSON.stringify(event)) console.log(event.responseCode); console.log(event.response.data) });
JS: error: "null" JS: responseCode: "400" JS: response: net.gotev.uploadservice.ServerResponse@73e7f34
I want to read response , Please help me in reading the response.
Hi i got answer from stack overflow
const responseObj = event.response && JSON.parse(event.response.getBodyAsString());
https://stackoverflow.com/questions/54707871/inappropriate-server-response-in-upload-failure-error-block-net-gotev-uploadserv/54710389#54710389
the above solution is not working @acharyaks90 @giscafer @EmilStoychev, can anyone help me. How should I read the error response from server.
java
the upload is success,but can't get the return value
I want to get the return value
Lang.list(uploadFileVo)
js
response is null,