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,560 points
530 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,320 points
232 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,320 points
263 views
0 votes
1 answer

How to load a set of files into database using Talend

Using tFileList component,  you can read all the files present ...READ MORE

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

How to generate multiple rows from a single row in Talend?

I think using tJavaFlex, tMap and tFlowToIterate ...READ MORE

answered Apr 18, 2018 in Talend by code.reaper12
• 3,450 points
1,084 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
70 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,320 points
153 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
74 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
72 views