Error when using Post Request node

Hi!

I have an error when I try to reproduce this terminal command:

curl https://host/api/v1/agent/112728123/launch --data “{“output”:“first-result-object”,“argument”:{“sessionCookie”:“yyy1234”,“spreadsheetUrl”:“guillemgm”,“splitFiles”:false}}” --header “Content-Type: application/json” --header “X-xx2323-Key-1: zzz”

in the Post Request node, I include the following parameters:

URL
https://host/api/v1/agent/112728/launch

Request Body
{
“output” : “first-result-object”,
“argument” : {
“spreadsheetUrl” : “guillemgm”,
“sessionCookie” : “yyy”,
“splitFiles” : false
}
}

I add 2 headers
Content-Type application/json constant
X-xx-Key-1 zzz constant

Authentication: none

The error is:

Execute failed: Read timed out

Any idea of wath I’m doing wrong?

Thanks!

Hi,

do you know how long this request takes with curl?
It seems that curl’s default timeout is higher than the timeout of the POST node.
Simply try to increase the timeout and it should work.

Cheers,
Moritz

Hi,

Yes, you’re right, now, with a longer timeout, it works!!

Thank you for your answer

Best
Guillem

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.