This topic was automatically generated from Slack. You can find the original thread here.
I am making a web service API call from a node.js section, and the post request times out after about 45 seconds. I’ve tried adding a timeout to the Axios POST call, but it still times out. Could there be another place that handles timeouts in Pipedream?
Based on the information provided, it seems there might be a misunderstanding regarding the timeout limit for HTTP requests in Pipedream. The timeout for HTTP requests sent with $.send.http() is 5 seconds, as mentioned in the Pipedream documentation. However, you’ve indicated that the POST request times out after about 45 seconds, which suggests you’re experiencing a different kind of timeout issue, not related to the $.send.http() method. If you’re using the axios library directly within a Node.js code step to make the POST request, you should be able to set a custom timeout in the request configuration. Here’s an example of how you can specify a timeout in an axios request: import { axios } from "@pipedream/platform"; export default defineComponent({ async run({ steps, $ }) { try { return await axios($, { method: "post", url: "https://your.api.endpoint", data: { // your POST data }, timeout: 45000, // timeout in milliseconds }); } catch (error) { // handle error throw error; } }, }); If you’ve already set a timeout in your axios request configuration and the request is still timing out, it’s possible that the timeout could be occurring on the server side or within the network infrastructure. It’s also worth noting that Pipedream’s infrastructure may have additional timeout limits that are not configurable by the user. If you continue to face issues, please provide more details about your specific implementation, including the code you’re using to make the POST request, so I can assist you further. If you need more immediate assistance, you can also visit https://pipedream.com/support for more support options.