Consuming REST API having single header through tRestClient component of Talend

0 votes

Can someone help me out with invoking a simple “Hello World” REST API through a “GET” call? My job accepts only one header i.e. Accept/application which I am sending through the tRestClient component. Here, in the advanced settings tab, I have specified the header in “HTTP Headers field”.

But when I am executing the job it's giving me the following error: HTTP 406 Not Acceptable

Please suggest some way out of this.

Apr 27, 2018 in Talend by 93.lynn
• 1,620 points
1,457 views

1 answer to this question.

0 votes

Talend provides a really easy way to work with this. All you need to do is to supply the parameters based on which Talend will automatically define the HTTP headers.

In order to do this, go to the basic tab of your tRESTClient component and specify the “HTTP Method” as “GET” and “Accept Type” as “JSON”.

image

I hope this works out for you.

answered Apr 27, 2018 by code.reaper12
• 3,500 points

Related Questions In Talend

0 votes
1 answer

Fetch output from tJDBCRow component of Talend

I guess, in this scenario, you can ...READ MORE

answered May 1, 2018 in Talend by geek.erkami
• 2,680 points
1,111 views
0 votes
0 answers
0 votes
2 answers

Read Data from Rest API's through Talend and store it in Oracle

Hi, @Abhishek, Regarding your query, I would suggest ...READ MORE

answered Oct 15, 2020 in Talend by Gitika
• 65,870 points
1,057 views
0 votes
1 answer

tWaitForFile component insufficiency in Talend

Regarding your first issue, tWaitForFile component provides ...READ MORE

answered Apr 10, 2018 in Talend by geek.erkami
• 2,680 points
954 views
0 votes
1 answer

Special issues while using WSO2

To choose an ESB for integration, you ...READ MORE

answered Apr 9, 2018 in Talend by anto.trigg4
• 3,440 points
202 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Slow transfer rate in Talend Job

You can try using tRedshiftOutputBulkExec component for ...READ MORE

answered Apr 24, 2018 in Talend by geek.erkami
• 2,680 points
766 views
0 votes
1 answer

Looping through all the schemas in Talend

It is really simple to make tOracleInput ...READ MORE

answered Apr 10, 2018 in Talend by code.reaper12
• 3,500 points
676 views
0 votes
1 answer

Specifying the number of Rows Processed in Talend

Hi, you can try using tSampleRow component ...READ MORE

answered Apr 14, 2018 in Talend by code.reaper12
• 3,500 points
573 views