Closed chipxsd closed 9 months ago
Not sure, but I think the error is referring to this: https://github.com/auth0/auth0-python/blob/21add3471ccadc1ab1b8def3ea049a8820e644a1/auth0/rest_async.py#L87-L93
Thanks for raising this @chipxsd
Have identified the issue and a fix is in flight https://github.com/auth0/auth0-python/pull/556
Please continue to use 4.5.0 until this is resolved
This also seems to break the _async
methods which suddenly return a coroutine instead of the object. For example
response = await self.auth0.users.create_async({'given_name': given_name,
[...]
})
return response['user_id'] # indexing breaks here in 4.6 because response is a coroutine
returns a coroutine even after the await. This code works unchanged with 4.4 (and returns a dict) but breaks with 4.6 (and returns a coroutine).
Checklist
Description
I've been noticing some errors in our logs ever since we bumped the Auth0-python lib version to 4.6.0:
I don't have it captured in a test to reproduce it, but I'll share our authentication code.
Reproduction
Additional context
No response
auth0-python version
4.6.0
Python version
3.11.4