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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Consume REST API with 1 header

Hi,

 

I'm trying to call a simple 'Hello World' REST API via the GET verb. The API is only expecting one HTTP Header, Accept application/json which i've set in the advanced settings of my tRestClient component. However, Talend seems to automatically create another entry for the contents of the Accept Type dropdown. When i run I’m getting HTTP 406 Not Acceptable back because the API is not expecting 2 headers. 

 

I've tested this API with other software and it responds correctly so it must be down to Talend configuration. Anybody know a way around this or had a similar issue they've resolved?

 

I have screenshots but unfortunately they're being blocked by my firewall at work. Sorry

 

Thanks

Matt

 

 

Labels (4)
21 Replies
Anonymous
Not applicable
Author

No this was the first time i'd used any REST components. 

Anonymous
Not applicable
Author

It might have happened when you installed or when you first logged in. The first log-in leads to a lot of downloads. This happens because Talend cannot ship with all of the 3rd party Jars (and because the package would be humongous if it did).