Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a job which calls an API with DELETE. I get the Java error:
java.lang.IllegalArgumentException: Media type separator is missing
Should I not use the query parameter with DELETE method?
Thank you.
Hi Shong,
Thank you for your response. Yes, when I call the API with Postman, it works fine. I will look at the link you provided and let you know if I can fix the issue.
Thank you,
Ayse
Hi Shong,
I looked at that link but I cannot find what to change in my Talend job.
Response parameters and HTTP header are as below. Tehre is no text/plain as mentioned in that CXF link.
Would you be able to recommend anything else?
Also, I tried to remove the query parameter from tRestClient component, this time, media type java error doesn't raise but I get an error from the API regarding the allowance. When I asked this to the vendor, they say my key has the permission to DELETE and since it works via Postman there should be something missing in my Talend job.
So I am confused between two ways none of them working; one raises java error the other raises API error.
I would appreciate for help.
Thank you,
Ayse
Hi Shong,
I tried using tRest and got the same error.
Please find below the screenshots for Postman and tRest case.
Thank you,
Ayse
I hope this is what you are asking: