Error: Invalid Private Key
Issue
When creating the Snowflake destination with KEY_PAIR authentication through a REST API script, the request returns the following response:
Invalid Private Key
Environment
- Destination: Snowflake
- Authentication method: KEY_PAIR
Resolution
To resolve this issue, exclude all line breaks from the private key string and do not use newline characters or their escaped equivalents, such as \n or \\n, in the private key string.
When using scripting tools such as PowerShell or Python, ensure any line breaks in the key generated are removed prior to creating the JSON object for your request.
Cause
This issue occurs when the private key specified in the request body contains line breaks.