Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ChaitraCP
Contributor
Contributor

tRestClient throwing 406|Could not find acceptable representation error

Hi,

I'm trying yo invoke the URL through trestclient and its throwing 406 error. The same we tried from postman and we got 200 success response. We have used the same headers and query parameters both in trestclient and postman. Could anyone please guide me on this.

 

Postman Log:

 

0695b00000StMUtAAN.png 

 

Talend Log:

 

0695b00000StMV3AAN.png 

Thanks,

Chaitra CP

Labels (3)
3 Replies
ann-gaelle
Partner - Contributor III
Partner - Contributor III

Hi, a 406 error means that one of the header you put in your request isn't fit for your services. It means that in one of your header you put a value that is not implemented in your services. It might be your Accept wich take a value that is not in the representation that your services can send ?

ChaitraCP
Contributor
Contributor
Author

Hi Team,

This is working in tRest component but getting 406 error in tRestclient.

tRestclient:

0695b00000StTWNAA3.png0695b00000StTWDAA3.pngtRest:

0695b00000StTWXAA3.pngPlease let us know if we need to do any changes in the tRestclient component.

 

Thank you,

Chaita CP

ChaitraCP
Contributor
Contributor
Author

Hi All,

 

Kindly anyone help me on this issue.

 

Thanks & Regards,

Chaitra CP