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
future: <Task finished name='update_token_loop' coro=<WriterAsyncIOStream._update_token_loop() done, defined at contrib/python/ydb/py3/ydb/_topic_writer/topic_writer_asyncio.py:686> exception=TypeError("'coroutine' object is not iterable")>
Traceback (most recent call last):
File "contrib/python/ydb/py3/ydb/_topic_writer/topic_writer_asyncio.py", line 689, in _update_token_loop
await self._update_token(token=self._get_token_function())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "contrib/python/ydb/py3/ydb/credentials.py", line 42, in get_auth_token
for header, token in self.auth_metadata():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'coroutine' object is not iterable",
Expected behavior:
_update_token_loop works fine with async auth_metadata
Steps to reproduce:
create async ydb.aio.Driver with credentials instance of class inherited from ydb.aio.credentials.AbstractExpiringTokenCredentials
Bug Report
YDB Python SDK version:
3.18.10
Environment
Current behavior:
ydb.aio.credentials.AbstractExpiringTokenCredentials provides ability to create async token provider with async auth_metadata
but update_token_loop expects sync auth_metadata
Expected behavior:
_update_token_loop works fine with async auth_metadata
Steps to reproduce:
Related code:
Other information:
The text was updated successfully, but these errors were encountered: