Why Does the First Request Time Out and the Trigger Not Work When Deploying Triggers on Pipedream?

deployment only works from the second retry, on the first the PD api always times out
You’re making two deploy requests because the first one fails and the second one succeeds?

yup

i don’t understand how to make pipedream forward the data to my webhook url
The webhook_url param should be outside of the configured_props

And it’s just a string, not a list

See the docs here: Deploy trigger - Pipedream

The timeout issue might be related to a cold start + the API calls the trigger makes when deploying, but I’m not sure

What’s the response you get when it times out?

  1. thanks for the doc, i was looking at some other method i think and confused the 2
  2. for the timeout i just get a generic:
{
  "rawResponse": {
    "headers": {},
    "redirected": false,
    "status": 0,
    "statusText": "Unknown Error",
    "type": "error",
    "url": ""
  }
}

okay, interesting, i tried a deploy again and didn’t get a timeout this time

so maybe this was some temporary issue that already got resolved

Yeah strange

But it could still be what I was thinking above

the cold start?

Yeah

could be, but but that’s weird, the cold start should not take long enough to time out the request, it was like a 60 or so second timeout

I don’t think cold starts are an issue for trigger deploys, since it’s the first time we’re deploying the lambda. It’s not it’s deployed and waiting to be executed but has gone cold, we haven’t deployed it yet.

Oh it’s 60 seconds timeout?

Yeah I was saying the cold start + the API requests to Salesforce

Well it wouldn’t be a cold start is my point

didn’t time it at the time, but it felt very long so around 60 i would say