Skip to content

SNOW-974846: Connection fails with error:0308010C with node 20 & v.1.9.1 #703

@smallTrogdor

Description

@smallTrogdor
  1. What version of NodeJS driver are you using?

latest version (v.1.9.1) of snowflake-connector-nodejs

  1. What operating system and processor architecture are you using?

linux amd64 (docker engine)

  1. What version of NodeJS are you using?
    (node --version and npm --version)

Node.js v20.9.0
npm v10.1.0

  1. What are the component versions in the environment (npm list)?

5.Server version:

7.41.0

  1. What did you do?

    In your release notes you state that with v1.9.1 you support nodeJs v20. However, when trying to connect, I receive the error:

Error: error:0308010C:digital envelope routines::unsupported
at Object.createPrivateKey (node:internal/crypto/keys:632:12)
at loadPrivateKey (/app/node_modules/snowflake-sdk/lib/authentication/auth_keypair.js:80:35)
at auth_keypair.authenticate (/app/node_modules/snowflake-sdk/lib/authentication/auth_keypair.js:169:20)
at Connection.connect (/app/node_modules/snowflake-sdk/lib/connection/connection.js:253:12)

I use the Key Pair Authentication & Key Pair Rotation auth flow.

  1. What did you expect to see?

    I expected to sucessfully connect to the snowflake db through my connector.

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

report-exporter-67-8g452-repair-and-clean-report-exporter.log

  1. What is your Snowflake account identifier, if any? (Optional)

SBB.EAP

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions