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: 
Anonymous
Not applicable

tRest Client JSON Parse error

Hello, 

 

Just getting into Talend and looking to develop a job to use the tRest client component to execute an API call and then eventually parse the error. 

 

I developed the API call using Postman, and have got the tRest client component working (ish).  The response comes back with statuscode 200 (yay) but the body comes back as null and the string comes back as

{"error":{code":100,"message":"'JSON:0683p000009MAB6.pngarserError: expected false at line 1, column 2) 

 

The component details as follows 

URL .site.comcom/api/rest/v2"

relative path: /grant_request/233"

http method: GET accept type JSON

query params: "cols"  value: "fiscal_organization_id"

use auth oauth2 bearer  token [supplied]

 

testing with postman the response is 

{"grant_request":{"id":233,"program_organization_id":10035395}}

 

is there anything that i'm missing?  or any pointers as to what the error is?  

it looks like the request is bringing back data but that the data cannot be parsed as JSON.   I've tried XML but to no avail. 

 

Thanks in advance

 

Labels (5)
0 Replies