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

tHttpRequest error 400 Bad Request

Hi all,
as shown in figure, I  use tFileInputRaw to extract the JSON from file and send it to tHttpRequest component in order to make the request.
But the Job returns "400 Bad Request".
I tried the JSON and HttpRequest with Advanced Rest Client and i works. Why doesn't work with in Talend?
Thanks all.
0683p000009MB2M.png
Labels (4)
8 Replies
Anonymous
Not applicable
Author

Hi,
Have you tried to use "post parameters from file" to see if it works?
Please see the related scenario "Sending a POST request from a local JSON file" in document  TalendHelpCenter:tHttpRequest
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
I already tried this scenario as shown in the figures.
But I get this error: "Cannot write output after reading input."
Why? Can you help me?
Thanks.
0683p000009MB6C.png 0683p000009MB2p.png 0683p000009MAzR.png
Anonymous
Not applicable
Author

can someone give me a suggestion?
thanks
Anonymous
Not applicable
Author

I'm sure that the JSON is correct because I tried it with Advanced Rest Client and it works.
this is the JSON.
{ 	"owner_org":"aaf93c42-",
"name":"TEst dataset",
"author":"organization",
"url":"http://www.organization.my.it/",
"notes":"this is a testing dataset",
"title":"Dataset",
"author_email":"organizations.it",
"extras":
}

Replying the example scenario with Talend Studio 5.5.1, I get "400 Bad Request", while with Talend Studio 5.6.0, I get "Cannot write output after reading input."
Anonymous
Not applicable
Author

Hi,
which is the format of the data contained in post parameters file in tHttpRequest?
Someone can make an example?
thanks
Anonymous
Not applicable
Author

Hi Team,
I am facing the same issue while doing GET Call with the URL . what are the possible cause for this ?
Regards,
Arihant
Anonymous
Not applicable
Author

Hi,
I'm facing the same issue wile doing get call with url Json ws using tRESTClient "error 400 Bad Request"
did anyone find a solution for this error or what are the possible causes of it please ?

Regards,
Anonymous
Not applicable
Author

Hello @Rabeb_BEN_MRAD 

Are you getting this issue on your trestclient component "javax.ws.rs.BadRequestException: HTTP 400 Bad Request"? For OAuth authenticated services, please provide some documentation on this, it will dramatically help with getting you can answer.

Best regards

Sabrina