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,590 points
680 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,450 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,640 points
315 views
0 votes
0 answers
0 votes
0 answers

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

Hi Team, Can anyone help me how to ...READ MORE

Oct 31 in Talend by Abhishek
• 150 points
26 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,640 points
387 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,420 points
85 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,640 points
226 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,450 points
135 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,450 points
114 views