adamant-policeman-88146
07/14/2023, 11:25 AMconst url = 'https://some.url/function'
const data = {
input: workflow.input
}
workflow.isWaitingForReply = true
let response = await axios.post(url, data, { timeout: 1000 * 60 * 15 })
response = response.data.res
workflow.response = response
workflow.isWaitingForReply = false
The function takes around 5 minutes to return a response.
The error that I get is:
Error executing action "inline-ins-xxx.js" in flow:Main:node:Standard5 [AxiosError, Network Error]
I'm sure that the function doesn't timeout itself. If I use curl
to test the HTTP call, I do get a reply after 5 minutes.
I tried setting the timeout for axios, but it didn't help. Is there any other way? Thank youacceptable-kangaroo-64719
07/14/2023, 11:51 AMadamant-policeman-88146
07/14/2023, 12:38 PMcolossal-egg-20510
07/14/2023, 6:14 PMadamant-policeman-88146
07/14/2023, 7:25 PMacceptable-kangaroo-64719
07/17/2023, 11:02 AMadamant-policeman-88146
07/17/2023, 4:27 PMPUT /v1/chat/conversations/{id}
, but how do I get the conversationId in the first place in the code block of step 1?acceptable-kangaroo-64719
07/17/2023, 5:01 PM