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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SSharma1993
Contributor
Contributor

Facing issue while using tRestClient Component

Hi,

I am trying posting a JSON through tRestClient component. Below are the parameters which i have set in component settings:

HTTP Method: POST, Content Type: JSON, Accept Type: Any

Input Schema: Repository (Json metadata)

Request is based upon Bearer Token so selected OAuth2 Bearer and provided the token value.

Did not give any query parameter and HTTP Headers.

Talend version - 8.0.1

java - zulu 17

Please help!

Error as below:

Starting job API_testing at 12:47 29/04/2022.

[statistics] connecting to socket on port 3452

[statistics] connected

[WARN ] 12:47:08 org.apache.cxf.transport.http.HTTPConduit- WWW-Authenticate response header is not set

Exception in component tRESTClient_1 (API_testing)

javax.ws.rs.WebApplicationException: HTTP 401 Unauthorized

at pim_integration.api_testing_0_1.API_testing.tFileInputJSON_1Process(API_testing.java:2492)

at pim_integration.api_testing_0_1.API_testing.runJobInTOS(API_testing.java:3286)

at pim_integration.api_testing_0_1.API_testing.main(API_testing.java:3048)

[statistics] disconnected

Job API_testing ended at 12:47 29/04/2022. [Exit code = 1]

Labels (6)
10 Replies
SSharma1993
Contributor
Contributor
Author

So, as my tWriteJSONField component is not giving desired results. I will try reinstalling Talend and then try to access it using jdk 11