Skip to content

Bug on the async related about get_event_loop with 1.0.0 #57

@chunyang-wen

Description

@chunyang-wen
  File "/usr/local/lib/python3.10/dist-packages/alibabacloud_credentials/client.py", line 100, in __init__
    self.cloud_credential = Client.get_credentials(config)
  File "/usr/local/lib/python3.10/dist-packages/alibabacloud_credentials/client.py", line 195, in get_credentials
    provider = OIDCRoleArnCredentialsProvider(
  File "/usr/local/lib/python3.10/dist-packages/alibabacloud_credentials/provider/oidc.py", line 92, in __init__
    self._credentials_cache = RefreshCachedSupplier(
  File "/usr/local/lib/python3.10/dist-packages/alibabacloud_credentials/provider/refreshable.py", line 164, in __init__
    self._loop = asyncio.get_event_loop()
  File "/usr/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.

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