Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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?

Labels (6)
11 Replies
Anonymous
Not applicable
Author

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.

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

Hello @shane

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

Best regards

Sabrina

Anonymous
Not applicable
Author

0683p000009M1bg.jpg0683p000009M1Rr.jpg0683p000009M1jU.jpg0683p000009M1W9.jpg

Anonymous
Not applicable
Author

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...0683p000009M1k3.jpg


Capture.JPG
Anonymous
Not applicable
Author

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)0683p000009M1Nk.jpg string attached to token

0683p000009M1hy.jpg

Anonymous
Not applicable
Author

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.

 


Talend TRestClient_Problem1.JPG
Anonymous
Not applicable
Author

Here is another screenshot from job design0683p000009M7bl.jpg

Anonymous
Not applicable
Author

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