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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Ayse
Contributor II
Contributor II

tRestClient DELETE Media type separator is missing

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.

 

 0683p000009Ma5J.png

 

0683p000009MZyE.png

Labels (3)
7 Replies
Anonymous
Not applicable

Hi
It seems this issue is related to header parameter Content-Type,
http://cxf.547215.n5.nabble.com/Media-type-separator-is-missing-how-to-troubleshoot-td5711524.html
Have you tried to call API with postman and did it works?

Regards
Shong
Ayse
Contributor II
Contributor II
Author

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

Ayse
Contributor II
Contributor II
Author

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

 

0683p000009Ma5n.png0683p000009Ma5s.png

Anonymous
Not applicable

Hi
Can you share some screenshots of Postman? i want to see if any difference on the settings. In addition, can you try to use tRest component to call the API and see if you have the same issue?

Regards
Shong
Ayse
Contributor II
Contributor II
Author

Hi Shong,

 

I tried using tRest and got the same error.

Please find below the screenshots for Postman and tRest case.

 

Thank you,

Ayse

 

 

0683p000009Ma5x.png0683p000009MZzH.png0683p000009Ma4H.png

Anonymous
Not applicable

share a screenshot of header settings of Postman.
Ayse
Contributor II
Contributor II
Author

I hope this is what you are asking:

 

0683p000009Ma62.png