https://supabase.com/ logo
Anyone know if theres a way to prevent edge functi...
# help
j
Anyone know if theres a way to prevent edge functions from hanging up after 1 minute? Code execution finishes, but the remote server (supabase) hangs up at 1 minute.
n
Hello @jordan801! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
Can you provide an example of the code you are executing and also explain what you mean by hanging up after 1 minute.
j
Im handling a bunch of external http requests and consolidating the results with an edge func. The request takes just over a minute to resolve all of that. From the logs I can see that the code execution finishes completely, and tries to ship a response. From Curl I get; "Empty reply from server" I tried from python: "Remote end closed connection without response" I see that deno will do this sort of thing if there's an unhandled error, so I stripped everything out and used setTimeout to cause a response delay of 240000ms / 2 mins. Everytime I get "Remote end closed connection without response" at exactly 1 minute.
I have a lot of interfaces and dependency injection so I dont know how helpful showing you some of the code will be.
s
Let me run this by the Edge functions team and get back to you
j
Thanks I appreciate it!