GitHub user PhilipCubix created a discussion: rest client throws error on 
succesfull HTTP 204 No Content

Hi,

I'm having a problem with the rest client: it receives a 204 http response 
(which is a type 2xx, so indicating success), but since there's no content, it 
throws an error.

`2025/12/19 09:12:35 - descrWorksExecuted.0 - Connecting to 
[https://api.businesscentral.dynamics.com/v2.0/.../companies(...)/salesHeaderCbxs(documentType%3DMicrosoft.NAV.salesDocumentType'Quote',no%3D'OF241323')/ccsDescrWorksExecuted]
 ...
2025/12/19 09:12:46 - descrWorksToBeExec.0 - ERROR: Because of an error, this 
transform can't continue:
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Can not read result from 
[https://api.businesscentral.dynamics.com/v2.0/.../companies(...)/salesHeaderCbxs(documentType%3DMicrosoft.NAV.salesDocumentType'Quote',no%3D'OF241307')/ccsDescrWorksToBeExec]
2025/12/19 09:12:46 - descrWorksToBeExec.0 - 
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Request could not be processed
2025/12/19 09:12:46 - descrWorksToBeExec.0 - java.net.SocketTimeoutException: 
Read timed out
...(next transformation)
2025/12/19 09:12:46 - descrWorksToBeExec.0 - ERROR: 
org.apache.hop.core.exception.HopException: 
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Can not read result from 
[https://api.businesscentral.dynamics.com/v2.0/.../companies(...)/salesHeaderCbxs(documentType%3DMicrosoft.NAV.salesDocumentType'Quote',no%3D'OF241307')/ccsDescrWorksToBeExec]
2025/12/19 09:12:46 - descrWorksToBeExec.0 - 
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Request could not be processed
2025/12/19 09:12:46 - descrWorksToBeExec.0 - java.net.SocketTimeoutException: 
Read timed out
2025/12/19 09:12:46 - descrWorksToBeExec.0 - 
2025/12/19 09:12:46 - descrWorksToBeExec.0 - 
2025/12/19 09:12:46 - descrWorksToBeExec.0 -    at 
org.apache.hop.pipeline.transforms.rest.Rest.callRest(Rest.java:321)
2025/12/19 09:12:46 - descrWorksToBeExec.0 -    at 
org.apache.hop.pipeline.transforms.rest.Rest.processRow(Rest.java:538)
2025/12/19 09:12:46 - descrWorksToBeExec.0 -    at 
org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2025/12/19 09:12:46 - descrWorksToBeExec.0 -    at 
java.base/java.lang.Thread.run(Thread.java:1583)
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Caused by: 
org.apache.hop.core.exception.HopException: 
2025/12/19 09:12:46 - descrWorksToBeExec.0 - Request could not be processed`

It would be better if it would set the result to an empty string or null so 
that it can be handled by logic, instead of throwing errors.

Any ideas on how to work around this problem?

thanks in advance

GitHub link: https://github.com/apache/hop/discussions/6233

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to