Skip to content

sp-rest-proxy does not work with Node 18.16.0 (current LTS) #163

@davea38

Description

@davea38

Hello again!

I've just updated my Windows 10 dev machine to Node 18.16.0 (current LTS) and sp-rest-proxy is throwing errors on all calls.

If I revert the Node version to v16.20.0 then the proxy starts working again with no code change.

My credential strategy is OnpremiseUserCredentials as I am using SP 2013 on-prem.

Error Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at Object.createNTLMHash (C:\...\node_modules\node-ntlm-client\lib\hash.js:77:22)
    at Object.createType3Message (C:\...\node_modules\node-ntlm-client\lib\ntlm.js:213:23)
    at C:\...\node_modules\node-sp-auth\lib\src\auth\resolvers\OnpremiseUserCredentials.js:41:35
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions