convex-python client freezing when using set_auth
Hi Convex team!
I've encoutered a strange error:
convex client is freezing on query when the .set_auth(<token>) is used prior to the query.
Version of Convex Python client: 0.6.0
Reproduced on two machines.
convex = ConvexClient(CONVEX_URL)
convex.set_auth(bearer_token) //token is a valid JWT token //obtained from WorkOS Authkit login flow
org = convex.query("organizations:getByWID", {"workos_id":client_id})
//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
Python 3.13.0
4 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
@mgtarnawski Could you tell us what the name of your backend is? (you can DM me or verify #verify )
Have you used Convex in any other way and used this JWT? What's the JWT look like?
Hi Tom, thanks for response, DMing 🙂
We filed https://github.com/get-convex/convex-py/issues/5, sounds like auth errors could be surfaced better