Unexpected database in connection details #966
-
SnowCLI version2.1.1 Python version3.12.2 PlatformNo response What happenedI want to test the SnowCLI connection without requiring DB/Schema being configured so that I can make sure my installation and authn is working. I was expecting the following or some friendly message. It would also be helpful if you printed the version of Snowflake I was connecting to (e.g.
Instead I got the following:
config.toml
Console outputNo response How to reproduceNo response |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
Hello, I checked it on my installation and this works correctly. Please take a look at my configuration and the output:
Are you sure you don't have defined one of the following env variables:
You can check it by trying to print these variables in your shell: echo $SNOWFLAKE_DATABASE
echo $SNOWFLAKE_CONNECTIONS_TESTING_DATABASE I'm asking about it because it looks like you have somehow defined
|
Beta Was this translation helpful? Give feedback.
-
I do not have any snowflake env variables defined:
|
Beta Was this translation helpful? Give feedback.
-
Can you paste the output of And also please execute |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'm afraid this is not the right way. Use |
Beta Was this translation helpful? Give feedback.
-
@sfc-gh-smason Could you try to:
Upgrade instructions: pip install --upgrade snowflake-cli-labs brew:
|
Beta Was this translation helpful? Give feedback.
-
Where is it picking up a ROLE and DB? |
Beta Was this translation helpful? Give feedback.
-
Have you ever used |
Beta Was this translation helpful? Give feedback.
-
I have not. |
Beta Was this translation helpful? Give feedback.
-
Ok, I have an idea. I was able to reproduce the issue when I set wrong combination of "default namespace" and "default role" in settings of my Snowflake user. The connection test respects these default values fetched from Snowflake and it can be the cause of your issue. If you have access to check them, then please do it. |
Beta Was this translation helpful? Give feedback.
-
To clarify: I'm talking about settings of Snowflake user in account admin view, not configuration in CLI. |
Beta Was this translation helpful? Give feedback.
-
@sfc-gh-pjob, I checked the account settings/profile for my account in Snowsight, and the default role is |
Beta Was this translation helpful? Give feedback.
Ok, I have an idea. I was able to reproduce the issue when I set wrong combination of "default namespace" and "default role" in settings of my Snowflake user. The connection test respects these default values fetched from Snowflake and it can be the cause of your issue. If you have access to check them, then please do it.