You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when making a call to get_user without a jwt or valid session the http response is giving an error:
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gotrue/_sync/gotrue_base_api.py", line 113, in _request
response.raise_for_status()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/httpx/_models.py", line 749, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'https://dwmniiddtelocakrnzer.supabase.co/auth/v1/user'
For more information check: https://httpstatuses.com/401
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nick/repos/supabase-error/main.py", line 11, in <module>
print(supabase.auth.get_user())
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gotrue/_sync/gotrue_client.py", line 385, in get_user
return self._request("GET", "user", jwt=jwt, xform=parse_user_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gotrue/_sync/gotrue_base_api.py", line 118, in _request
raise handle_exception(e)
gotrue.errors.AuthApiError: invalid claim: missing sub claim
I also see in some issues around this on the JS library that you need to mark the option of persistent sessions as false when creating the client. I tried doing that and it didn't seem to prevent the issue.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Currently when making a call to get_user without a jwt or valid session the http response is giving an error:
To Reproduce
Expected behavior
Expecting some sort of no user found message
System information
MacOS
Additional context
I also see in some issues around this on the JS library that you need to mark the option of persistent sessions as false when creating the client. I tried doing that and it didn't seem to prevent the issue.
The text was updated successfully, but these errors were encountered: