Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

667 B
Raw Blame
---
title = "Why is my supabase API call not returning?"
github_url = "https://github.com/orgs/supabase/discussions/19058"
date_created = "2023-11-17T22:39:54+00:00"
topics = [ "auth", "platform" ]
keywords = [ "deadlock", "hang", "async" ]
database_id = "0a6f6d33-7331-4b47-87ec-7ade7a6a5924"
---

There is currently a bug in supabase-js which results in a deadlock if any async API call is made in `onAuthStateChange` code. If a call is made in the handler then the next Supabase call anywhere using that client will hang and not return.

For now a workaround is needed until this is fixed.

https://github.com/supabase/gotrue-js/issues/762#issuecomment-1780006492