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

SNOW-1848370: Misleading error message when connection configuration is correct #1931

Open
sfc-gh-twhite opened this issue Dec 6, 2024 · 0 comments

Comments

@sfc-gh-twhite
Copy link
Contributor

SnowCLI version

Snowflake CLI version: 3.0.1

Python version

Python 3.10.11

Platform

macOS-14.7-x86_64-i386-64bit

What happened

When executing snow snowpark build I'm receiving the following error (obfuscating account):

╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid connection configuration. 250001 (08001): None: Failed to connect to DB: xxx-xxx.snowflakecomputing.com:443. User is locked from Duo        │
│ Security. Contact your local system administrator.                                                                                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

I know I have locked myself out of Duo and will wait fifteen minutes, but the message on this error is incorrect as this has nothing to do with connection configuration.

I'm not sure we can do much here as snowflake.connector.errors.DatabaseError 250001 (08001) seems to be more of a catch-all.

Console output

❯ snow snowpark build
Resolving dependencies from requirements.txt
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid connection configuration. 250001 (08001): None: Failed to connect to DB: xxx-xxx.snowflakecomputing.com:443. User is locked from Duo        │
│ Security. Contact your local system administrator.                                                                                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

How to reproduce

MFA enabled on connection configuration where Duo locks out the user after Duo requests have expired without accepting the push.

@github-actions github-actions bot changed the title Misleading error message when connection configuration is correct SNOW-1848370: Misleading error message when connection configuration is correct Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant