javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

Five Stars

javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

While using tRestClient I am getting below error,,

 

tarting job EmployeeDetails_Pega at 21:11 14/12/2018.

[statistics] connecting to socket on port 4025
[statistics] connected
Exception in component tRESTClient_1 (EmployeeDetails_Pega)
javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
at vizard_pega_dataintegration.employeedetails_pega_0_1.EmployeeDetails_Pega.tWriteJSONField_1_InProcess(EmployeeDetails_Pega.java:5627)
at vizard_pega_dataintegration.employeedetails_pega_0_1.EmployeeDetails_Pega$1ThreadXMLField_tWriteJSONField_1_Out.run(EmployeeDetails_Pega.java:1992)
[statistics] disconnected
Job EmployeeDetails_Pega ended at 21:11 14/12/2018. [exit code=1]

 Any sollution for the issue?

Four Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

I am also getting same error while using tRestClient. Anyone with a clue as to why such problem is occuring? Help is appreciated.


Thanks in advance.
Regards,
Shane.

Moderator

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

Hello,

Did you put json or xml has content-type ?
Did you try to request with a solution like soapui & check rest request ? (outside Talend)

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Moderator

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

Hello @shane

We need more information to address your issue. Could you please post your component setting screenshots on forum?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

4Capture.JPG3Capture.JPG2Capture.JPG1Flow.JPG

Five Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

I am new to talend.. I am trying to get DB data from talend to Vizard(BI tool).. They have provided steps below.

https://www.youtube.com/watch?v=OyZIvUtjDkA  

Please go through the video.. I have followed same and set it up..

When I run the talend its returning the records in Json format.. issue appears while using trestCOnnect shape. Attached output json...Capture.JPG

Five Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

When I tried to hit from postman below are the errors I get..2nd image shows output When I use token without "Bearer " String, 1st nd image shows output of postman with "Bearer" string(higlighted in blue)12Capture.JPG string attached to token

1Capture.JPG

Four Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

I am facing the same issue as above - 

Exception in component tRESTClient_1 (Copy_of_ServiceNowCMDBProd_v3_09_22oaut2_WRK6)
javax.ws.rs.BadRequestException: HTTP 400 Bad Request.

 

Attached is my job design - 

 

Request you to please share your inputs.

 

Four Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

Here is another screenshot from job designTalend TRestClient_Problem.JPG

Four Stars

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

hi , i got the same problem did anyone find a solution for this error please ?

Moderator

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

Hello @Rabeb_BEN_MRAD 

Are you getting this issue on your trestclient component "javax.ws.rs.BadRequestException: HTTP 400 Bad Request"? For OAuth authenticated services, please provide some documentation on this, it will dramatically help with getting you can answer.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: javax.ws.rs.WebApplicationException: HTTP 400 Bad Request error while using tRestClient

I have designed the same way. We are also experiencing the same issue, even though the API call success from the other rest clients.

Please let me know the solution if you have any.

 

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch