Skip to content

TypeError: Cannot convert undefined or null to object #246

@lfcastilhos

Description

@lfcastilhos

Team, recompile my PCF code from 22/2/2023 and I got the error below.
Nothing was changed in my code, except redeploy and package update.
Also I see ldapjs was updated to version 3.0.0.
Anyone having same issue?

/home/vcap/deps/0/node_modules/activedirectory/lib/activedirectory.js:416
delete result.controls; // Remove the controls array returned as part of the SearchEntry
^
TypeError: Cannot convert undefined or null to object
at CorkedEmitter.onSearchEntry (/home/vcap/deps/0/node_modules/activedirectory/lib/activedirectory.js:416:5)
at CorkedEmitter.emit (node:events:513:28)
at CorkedEmitter.emit (/home/vcap/deps/0/node_modules/ldapjs/lib/corked_emitter.js:44:33)
at sendResult (/home/vcap/deps/0/node_modules/ldapjs/lib/client/client.js:1233:22)
at messageCallback (/home/vcap/deps/0/node_modules/ldapjs/lib/client/client.js:1253:14)
at Parser.onMessage (/home/vcap/deps/0/node_modules/ldapjs/lib/client/client.js:919:14)
at Parser.emit (node:events:513:28)
at Parser.write (/home/vcap/deps/0/node_modules/ldapjs/lib/messages/parser.js:135:8)
at TLSSocket.onData (/home/vcap/deps/0/node_modules/ldapjs/lib/client/client.js:875:22)
at TLSSocket.emit (node:events:513:28)
Node.js v18.12.11

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