-
Notifications
You must be signed in to change notification settings - Fork 140
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-905751: Snowflake.Data connection failed in linux, succeeded in windows #767
Comments
hi and thank you for submitting this issue. I tried to reproduce it but couldn't yet. Here's the steps I've taken in an attempt to reproduce it. Set up environment
Repro program
Run the repro program
Successfully connects to Snowflake and executes a query. So can confirm Snowflake .NET Driver version 2.1.1 does work under Linux. But perhaps your situation is different from the above setup. For next step, could you please:
I would like to use a repro as closely resembling your situation as possible. Thank you in advance ! |
there's been no response on this for a while now, so marking it closed. If you require further help, please answer the questions accordingly and/or provide reproduction/logs, and I'll reopen the issue. |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of .NET driver are you using?
2.0.0 or 2.1.1
What operating system and processor architecture are you using?
linux
What version of .NET framework are you using?
net6.0
What did you do?
When I run following code in windows, it connection opened. While run in linux, it throws:
Unhandled exception. System.AggregateException: One or more errors occurred. (A task was canceled.)
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task
1.get_Result()at Snowflake.Data.Core.RestRequester.Post[T](IRestRequest request)
at Snowflake.Data.Core.Authenticator.BaseAuthenticator.Login()
at Snowflake.Data.Core.Authenticator.BasicAuthenticator.Snowflake.Data.Core.Authenticator.IAuthenticator.Authenticate()
at Snowflake.Data.Core.SFSession.Open()
at Snowflake.Data.Client.SnowflakeDbConnection.Open() -- .NET driver 2.0.0
Error Message: Error: Snowflake Internal Error: Unable to connect. One or more errors occurred. (A task was canceled.) SqlState: 08006, VendorCode: 270001, QueryId: -- .NET driver 2.1.1
using (IDbConnection conn = new SnowflakeDbConnection())
{
conn.ConnectionString = "password=xxx;account=xxx;user=xxx;db=xxx;warehouse=xxx;role=xxx;host=xxx;region=xxx";
}
What did you expect to see?
Connection succeeds in linux, thanks
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
There is an example in READMD.md file showing you how to enable logging.
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: