Skip to content

Edge function timeout 60 seconds #727

Open
@Magnuti

Description

@Magnuti

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Edge functions timeouts after 60 seconds

Error Domain=NSURLErrorDomain Code=-1001 "Timeout for the request." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x128c9a4f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3922FB75-06BE-48FF-96B3-F79C4227EAFA>.<24>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <3922FB75-06BE-48FF-96B3-F79C4227EAFA>.<24>"
), NSLocalizedDescription=Timeout for the request., NSErrorFailingURLStringKey=http://10.152.9.218:5432/functions/v1/my-function, NSErrorFailingURLKey=http://10.152.9.218:5432/functions/v1/my-function, _kCFStreamErrorDomainKey=4}

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create an edge function with a timeout of 60 seconds or more await new Promise((resolve) => setTimeout(resolve, 60 * 1000))
  2. Invoke the edge function try await supabaseClient.functions.invoke("my-function")
  3. Wait for response
  4. Get timeout

Expected behavior

Should not time out after 60 seconds, but after 150 seconds as specified here https://supabase.com/docs/guides/functions/limits

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • supabase-swift 2.26.0
  • Supabase: 2.23.4
  • deno 2.3.1
  • Node v22.15.0

Additional context

How can we increase the timeout to 150 seconds?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions