Skip to content

if the RPC check_team_code_exists throws an exception (e.g. network error), it counts as a failed attempt->Infinite loop #155

@aniket866

Description

@aniket866

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Where: SupabaseService.createTeam

Issue: The do-while loop tries 10 times to generate a unique ID. If the RPC check_team_code_exists throws an exception (e.g. network error), it counts as a failed attempt. 10 network errors = "Failed to create team".

Fix: Distinguish between "Code exists" (retry) and "Network Error" (throw immediately or retry with backoff).

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions