Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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]
So, as my tWriteJSONField component is not giving desired results. I will try reinstalling Talend and then try to access it using jdk 11