EarlyDrop in edge function
I have an edge function that sends requests to openrouter for an LLM response, but it's shutting down early with this error
9 Replies
@jz edge functions have tight execution and memory limits optimize your request handling or move heavy tasks (like LLM API calls) to a serverless function or background job outside the edge runtime
Edge functions are already serverless functions
yeah thats what i was thinking, they should work :Link_Think:
You must be hitting edge function limits https://supabase.com/docs/guides/functions/limits
not sure which limit i could be hitting though
theres basically no CPU time
its getting a response within 150s
maybe 400s wall time
Do you receive 546 status code when functions exits? If there was memory/cpu/wall-clock limit, 546 is received https://supabase.com/docs/guides/troubleshooting/edge-function-wall-clock-time-limit-reached-Nk38bW
no this is the full response:
I mean in your app. what http status code do you get in your app when function exits?
oh
we dont receive a response there
im just gonna switch this to railway
good chance we're passing the edge wall time
thank u for support ser