Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am facing an error while calling an api link from trestclient_1 component, dont know what is going wrong also i need this output in jason format.
Attached two files
1st file shows trestclient component configuration
2nd file shows the error
3rd file shows my job design
Thanks in advance,
Your help is appreciated !!!
The format does not matter with JSON. It is just a data structure. While it is easier for humans to read when structured in a pretty way, it makes absolutely no difference to computers. Why do you need it in a nice format?
I think you will need to give us more information to solve this. We will need to be able to see the URL, especially if there are path params. We will also need to see the API docs if possible. I also note that you have an empty query param (two empty Strings) configured. Is that empty because you have removed those values or was it there when you got the error and shouldn't be included? If that is the case, try removing it.
hi rhall,
Thanks for quick response,
Please see the snap with url in attached file, and about query param i havent included any param in that query param they were empty from initial stage.
What will be the parameter in that query param (name-value) pair according to that api link or it will remain blank.
thanks,
Can you try removing the empty row in the Query Parameters box? It just holds empty Strings. Doing this will not necessarily fix the issue, but it might change the error.
Hi rhall,
I removed that empty row from query parameter box and it worked like a charm, attached is the output which i got on the run console.
But the output is not in required format, how can i get the output in jason format.
Thanks
Should i use textractjasonfields component to get the output in jason format ?
Hi @Talendcrazy_18,
The output in the screenshot is in JSON format. It is not nicely presented, but it looks like valid JSON. What is wrong with the output from your point of view?
Regards
Richard
Hi Richard,
I am not able to get whats wrong with output format, i have attached two screenshots of trestclient component configuration do i need to make some changes there in component itself to get in nice format.
one of Basic settings and second Advance settings.
The format does not matter with JSON. It is just a data structure. While it is easier for humans to read when structured in a pretty way, it makes absolutely no difference to computers. Why do you need it in a nice format?