Skip to content

Unable to increase client timeout for calling edge functions #1399

@Thorsten-Kd

Description

@Thorsten-Kd

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

We're using the supabase js client in React native on mobile and are calling an edge function that sometimes lasts longer than 60s, but the client timeout kicks in after 60 seconds. How can I increase the timeout for the call await supabaseClient.functions.invoke(...)? .

To Reproduce

create a new edge function and add a sleep with more than 60s and call the edge function from JS client. It will timeout after 60s.

Expected behavior

Ability to set a timeout parameter to increase timeout

Screenshots

System information

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfunctions-jsRelated to the functions-js library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions