Skip to content

Client doesn't surface auth errors #5

Description

@mtarnawski

Hi Convex team!
I've encoutered a strange error:

convex client is freezing on query when the .set_auth() is used prior to the query.

Version of Convex Python client: 0.6.0

Reproduced on two independent machines.

import convex
client = convex.ConvexClient("https://colorful-scorpion-774.convex.cloud")
client.set_auth("<JWT_TOKEN_FROM_WORKOS_LOGIN flow>")
org = client.query("organizations:getByWID", {"workos_id":"org_01JDZBZEDH7MYNG9CBSR"})
print(org)

//the above query is public and returns proper result if the set_auth was not invoked, and hangs indefinitely if it was invoked.

$python3 --version
Python 3.13.0

I'd be grateful for confirmation if the bug can be reproduced (and fixed).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions