Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: TypeError: BaseJWTCredentials.from_content() got multiple values for argument 'iam_endpoint' #432

Open
Zapzatron opened this issue Jun 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Zapzatron
Copy link

Bug Report

YDB Python SDK version:

ydb[yc]==3.12.0

Environment

Windows 10 Pro 64-bit
Python 3.10.11
CPU: AMD Ryzen 3 2200G Raven Ridge 14nm Technology

Related code:

credentials = ydb.iam.ServiceAccountCredentials.from_file(auth_key_path)

Other information:

Traceback (most recent call last):
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\.venv\lib\site-packages\starlette\routing.py", line 732, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "contextlib.py", line 199, in __aenter__
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\tg\run_tg.py", line 1660, in lifespan
    await on_startup()
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\tg\run_tg.py", line 1613, in on_startup
    await user_config_manager.create_user_data_db()
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\db\user_data_yql.py", line 35, in create_user_data_db
    await create_yql_table_if_not_exist(self.error_manager, self.user_data_db_name, create_db_sql, self.endpoint,
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\db\con_yql.py", line 98, in create_yql_table_if_not_exist
    await work_with_yql_db(error_manager, db_name, check_db_sql, endpoint, database, auth_key_path)
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\db\con_yql.py", line 64, in work_with_yql_db
    token, = await func_retry(error_manager, get_ydb_auth_token,
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\function_operation.py", line 41, in func_retry
    return await func_run(func, params)
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\function_operation.py", line 11, in func_run
    func_response = await func(**params)
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\source\general\db\con_yql.py", line 19, in get_ydb_auth_token
    credentials = ydb.iam.ServiceAccountCredentials.from_file(auth_key_path)
  File "F:\Games\Programming_Projects\Python\Zapzatron_Club\Zapzatron_Bot\.venv\lib\site-packages\ydb\iam\auth.py", line 104, in from_file
    return BaseJWTCredentials.from_content(
TypeError: BaseJWTCredentials.from_content() got multiple values for argument 'iam_endpoint'
@Zapzatron Zapzatron added the bug Something isn't working label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant