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,550 points
394 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
169 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
169 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
312 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
693 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
54 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
103 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
48 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
44 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.