Error message for POST Node but status code is 202

Hi,

I am doing an POST API call to MYOSH, Viking API endpoint, the result status I am getting back is 202, but there is still an error message: The entity is not backed by an input stream, entity class is : java.io.InputStream
Has anyone seen this before. I am not sure if this is an issue at the Endpoint or KNIME. If I know which side the issue is I can then focus on trying to find the reason for an 202 result to produce an error message as well.

Regards
Willem.

Hello @Willem,

The easiest way to make sure its not an endpoint issue would be to curl the endpoint with your specific api call or use Postman (free tool for testing APIs).

I would try curling the endpoint and seeing the response you get from the api. If its as expected it is probably an issue with KNIME, if not then its on the API side.

Hope this helps,
TL

1 Like

The error message indicates that the service did not return a response besides the status code, i.e. no body which can be read and turned into a cell. This is rather unusual because 202 (Accepted) usually does return some information about the accepted request.