Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to avoid 204 error message in tRest ?

I'm using tRest component to update data in an API. This API returns a 204 code with no content. tRest component has a ERROR behaviour althought that data are correctly updated...
  
I would like to consider this 204 as a normal behaviour. is it possible ?
Labels (3)
8 Replies
Anonymous
Not applicable
Author

Hi
The error code is defined and returned from rest API, you can change it to another value after tRest, for example:
tRest--main--tMap--main....
on tMap:
row1.ERROR_CODE==204?another value:row1.ERROR_CODE
Regards
Shong
Anonymous
Not applicable
Author

thank you for reply Shong
but tRest doesn't allow to go futher : so i cannot change it. The "normal" response from API is "no content"...
  


0683p000009MCAj.jpg
vapukov
Master II
Master II

Uncheck checkbox - die on error if not already done
Dose it work for any of request, or always return error?
Anonymous
Not applicable
Author

vapukov,
I do not have any "die on error" checkbox in tRest component. Do you ?
vapukov
Master II
Master II

I'm use tRESTClient - it has (sorry, I use tREST long time ago, and just automatically - any api == tRESTClient)
try test it, historically it was not in Studio, but now it present
Anonymous
Not applicable
Author

Ok i migrate to tRestClient. It just work on main flow instead of iterate isn'it ?
vapukov
Master II
Master II

yes, it work on main flow, I use tFlowToIterate -> tJavaFlex (empty, just as connector) -> tRESTClient
Anonymous
Not applicable
Author

Thanks vapukov
I'll use tRestClient.
Bye