Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Error: Callback was already called when using getGroupMembershipForUser #106

@Tonatiu

Description

@Tonatiu

Hi there,
I'm trying to use a single connection to make multiple requests ti my LDAP connection and everything works fine when I call userExists or findUser, however the thing is different when I call the getGroupMembershipForUser function because it crashes my server with the current error when the connection is lost or it's reseted.

~/node_modules/async/dist/async.js:326
if (fn === null) throw new Error("Callback was already called.");
^

Error: Callback was already called.
at /node_modules/async/dist/async.js:326:36
at GroupMembersForDN.callback (
/node_modules/activedirectory2/lib/components/getGroupMembershipForDN.js:55:7)
at GroupMembersForDN.asyncCallback (/node_modules/activedirectory2/lib/components/getGroupMembershipForDN.js:78:8)
at wrapper (
/node_modules/async/dist/async.js:273:20)
at eachOfArrayLike (/node_modules/async/dist/async.js:492:13)
at eachOf (
/node_modules/async/dist/async.js:628:16)
at awaitable (/node_modules/async/dist/async.js:212:32)
at Object.eachLimit$2 (
/node_modules/async/dist/async.js:2693:16)
at Object.awaitable (/node_modules/async/dist/async.js:212:32)
at Searcher.callback (
/node_modules/activedirectory2/lib/components/getGroupMembershipForDN.js:118:11)

I have tried different strategies to avoid this error even configurations, however I haven't been able to get rid of.

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