You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
EDIT:
My environment
osixia/openldap + ldapjs:3.0.5
the error is happening on a LDAP SEARCH query
File ./lib/client/client.js Line 1260
let event = msg.constructor.name
// Generate the event name for the event emitter, i.e. "searchEntry"
// and "searchReference".
event = (event[0].toLowerCase() + event.slice(1)).replaceAll('Result', '')
return sendResult(event, msg)
For some reason event[0] is undefined and therefore my app crashes on the toLowerCase call
Please provide a minimal reproducible example. Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.
You may use a GitHub repository to host the code if it is too much to fit in a code block (or two).
EDIT:
My environment
osixia/openldap + ldapjs:3.0.5
the error is happening on a LDAP SEARCH query
File
./lib/client/client.js
Line 1260For some reason event[0] is undefined and therefore my app crashes on the toLowerCase call
I suggest to replace the if block with:
I think it's a terrible idea to base decision on constructor.name value.
I've struggled 2.5 days to figure it out.
The text was updated successfully, but these errors were encountered: