Instantiate a session using private key auth. I get an error,
Traceback (most recent call last):
File "/home/emher/PycharmProjects/zpoc_ems_system/src/vestas_ems/common.py", line 86, in wrapper_func
f(*args, **kwargs)
File "/home/emher/PycharmProjects/zpoc_ems_system/src/vestas_ems/agent/energidataservice.py", line 116, in _run
session = _get_snowpark_session(settings)
File "/home/emher/PycharmProjects/zpoc_ems_system/src/vestas_ems/agent/energidataservice.py", line 44, in _get_snowpark_session
return Session.builder.configs(connection_parameters).create()
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/snowpark/session.py", line 232, in create
return self._create_internal(conn=None)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/snowpark/session.py", line 238, in _create_internal
ServerConnection({}, conn) if conn else ServerConnection(self._options)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/snowpark/_internal/server_connection.py", line 138, in __init__
self._conn = conn if conn else connect(**self._lower_case_parameters)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/__init__.py", line 51, in Connect
return SnowflakeConnection(**kwargs)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/connection.py", line 302, in __init__
self.connect(**kwargs)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/connection.py", line 566, in connect
self.__open_connection()
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/connection.py", line 828, in __open_connection
self.authenticate_with_retry(self.auth_class)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/connection.py", line 1084, in authenticate_with_retry
self._authenticate(auth_instance)
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/connection.py", line 1127, in _authenticate
auth_instance.handle_timeout(
File "/home/emher/.cache/pypoetry/virtualenvs/vestas-ems-a8UVhBwn-py3.8/lib/python3.8/site-packages/snowflake/connector/auth/keypair.py", line 200, in handle_timeout
self.prepare(account, user)
TypeError: prepare() takes 1 positional argument but 3 were given
Please answer these questions before submitting your issue. Thanks!
3.8.10
Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
pip freeze
)?What did you do?
Instantiate a session using private key auth. I get an error,
What did you expect to see?
No error.