0

我正在使用 LDAP JS。我ECONNRESET一次又一次地收到错误,我也尝试浏览它但没有成功。尝试添加reconnect: true限定符但没有成功。我的代码和错误如下。

const adConfiguration = {
        url: "ldap://" + process.env.ad_URL,
        reconnect: true,
        tlsOptions: {
            rejectUnauthorized: true,
        }
    }

我收到的错误如下:

Waiting for the debugger to disconnect...
events.js:353
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
    at TCP.callbackTrampoline (internal/async_hooks.js:134:14)
Emitted 'error' event on Client instance at:
    at Socket.onSocketError (F:\MFA\CrypLock_BE\CrypLockServer\node_modules\ldapjs\lib\client\client.js:966:12)
    at Socket.emit (events.js:376:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}
[nodemon] app crashed - waiting for file changes before starting...
4

0 回答 0