node.js – Connection state pristine

I am using node 18.11 and snowflake-sdk nodejs driver v 1.15.0. Getting the below error:

Snowflake Error SF:  Error [ClientError]: Unable to perform operation because a connection was never established.

33|TestEnv_ORD_RLS_Start  |     at createError (C:\inetpub\wwwroot\TEST_ENV\InsightRelease_Server\node_modules\snowflake-sdk\lib\errors.js:539:17)

33|TestEnv_ORD_RLS_Start  |     at exports.createClientError (C:\inetpub\wwwroot\TEST_ENV\InsightRelease_Server\node_modules\snowflake-sdk\lib\errors.js:376:10)

33|TestEnv_ORD_RLS_Start  |     at C:\inetpub\wwwroot\TEST_ENV\InsightRelease_Server\node_modules\snowflake-sdk\lib\services\sf.js:973:21

33|TestEnv_ORD_RLS_Start  |     at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {

33|TestEnv_ORD_RLS_Start  |   code: 407001,

33|TestEnv_ORD_RLS_Start  |   sqlState: '08003'

33|TestEnv_ORD_RLS_Start  | }

we are able to see a session ID in snowflake generated against the request, and OCSP certificate is validated by snowflake request. looking at the github code of the driver, i am able to get the code and sqlState as — “CONNECTION_STATE_PRISTINE”.

are there any pointers on this error? not sure in which direction to look.

Read more here: Source link