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
raiseTypeError(
f"Expected bytes or RSAPrivateKey, got {type(self._private_key)}"
)
### What did you expect to see?
It would make sens to handle string on connector side allowing users to pass the key as env variable.
### Can you set logging to DEBUG and collect the logs?
_No response_
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
str typing for private_key is misleading and causes errors if used
SNOW-1526475: str typing for private_key is misleading and causes errors if used
Jul 9, 2024
When using key-pair authentication, you need to pass PrivateKey object and not String. For the Snowflake Python driver, authentication using a private key involves using PrivateKey object.
String is not the expected type, read the private key from the PEM file, Convert the PEM formatted string to a PrivateKey object.
Python version
3.10
Operating system and processor architecture
macOS-14.5-arm64-arm-64bit
Installed packages
What did you do?
and raises
The text was updated successfully, but these errors were encountered: