Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

client hangs after upgrade to v2.10.0 #597

Closed

Description

@bhvngt

Bug report

Describe the bug

When I try to upgrade the supabase-js client to the latest release v2.4.1, program hangs after it has created supabaseclient.

To Reproduce

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

  1. install v2.4.1 supabase-js client
  2. create a simple file containing following code
import { createClient } from "@supabase/supabase-js";

const adminClient = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY);
  1. run node supabase-test.js
  2. execution does not terminate. No error is displayed.

Expected behaviour

program execution should terminate.

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOS
  • Version of supabase-js: 2.4.1
  • Version of Node.js: 18.3.0

Additional Context

Same program terminates when supabase-js is v2.4.0

Activity

  1. added
    bug
    on Jan 27, 2023
  2. soedirgo commented on Jan 28, 2023

    @soedirgo
    Member

    Thanks for reporting this. Can you double check that it works in v2.4.0? I can reproduce the issue as far back as v2.0.0 - it works on v1.

    I was also able to narrow this down to gotrue-js client constructor - can you reproduce the issue with this example?

  3. bhvngt commented on Jan 30, 2023

    @bhvngt
    Author

    @soedirgo I could reproduce the issue with the example.

    Here's the repo where on running gotrue.js, it hangs.

    I have noticed that this happens when gotrue-js client is set at v2.10.0. Any version below that works without any issue.

  4. soedirgo commented on Jan 31, 2023

    @soedirgo
    Member

    I have noticed that this happens when gotrue-js client is set at v2.10.0. Any version below that works without any issue.

    Thanks! I'm also able to replicate this.

  5. changed the title [-]supabase client hangs after upgrade to `v2.4.1`[/-] [+]client hangs after upgrade to `v2.10.0`[/+] on Jan 31, 2023
  6. hf commented on Jan 31, 2023

    @hf
    Contributor

    In version 2.10.0 we added the #564 new refresh token algorithm which uses setInterval. From some docs online it looks like a running setInterval will instruct NodeJS to never stop the process.

    https://stackoverflow.com/questions/48172363/mocha-test-suite-never-ends-when-setinterval-running

    Let me figure out how to address this properly.

  7. added a commit that references this issue on Jan 31, 2023
    1d8df28
  8. github-actions commented on Jan 31, 2023

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 2.10.2 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions