Skip to content

SNOW-2884893: Intermittent error while using KeyPair Authentication in Net driver #1290

@akshaybheda

Description

@akshaybheda

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of .NET driver are you using?
    4.8.0

  2. What operating system and processor architecture are you using?
    Windows 64 bit

  3. What version of .NET framework are you using?
    E.g. .net 8.0

  4. What did you do?

_connection = dbRetryPolicy.Execute(() =>
{
var connect = new SnowflakeDbConnection();
connect.ConnectionString = connectionString;
return connect;
});

_connection.Open();

  1. What did you expect to see?

    I am getting following error
    Snowflake.Data.Client.SnowflakeDbException (0x80004005): Error: Required property PASSWORD is not provided. SqlState: , VendorCode: 270006, QueryId:
    at Snowflake.Data.Core.SFSessionProperties.CheckRequiredProperty(SFSessionProperty sessionProperty, SFSessionProperties properties)
    at Snowflake.Data.Core.SFSessionProperties.CheckSessionProperties(SFSessionProperties properties)
    at Snowflake.Data.Core.SFSessionProperties.ParseConnectionString(String connectionString, SessionPropertiesContext propertiesContext)
    at Snowflake.Data.Core.Session.SessionPool.GetSession(String connStr, SessionPropertiesContext sessionContext)
    at Snowflake.Data.Client.SnowflakeDbConnection.Open()

Its not consistent and happens intermittently, my initial thought was maybe i did wrong configuration for connection string but it works most of the time but randomly its throwing that exception.

  1. Can you set logging to DEBUG and collect the logs?

I can try but its difficult, we host on azure web app instance and not on VM

Metadata

Metadata

Labels

status-information_neededAdditional information is required from the reporterstatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions