Closed JohnPolansky closed 5 years ago
Can reproduce this problem as well.
idleTimeout
, connectTimeout
, and timeout
are set extremely high (over 10 minutes).
I seem to get this TimeLimitExceededError
after 10 seconds.
EDIT:
Looking at the docs for .search():
timeLimit | the maximum amount of time the server should take in responding, in seconds. Defaults to 10. Lots of servers will ignore this.
Try manually setting this to a larger value in your options?
var opts = {
filter: '(&(l=Seattle)(email=*@foo.com))',
scope: 'sub',
attributes: ['dn', 'sn', 'cn'],
timeLimit: 6000, // 10 minutes in seconds or limit of your choice
};
I believe this has been sufficiently answered. Feel free to re-open if you still have questions.
⚠️ This issue has been locked due to age. If you have encountered a recent problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example when opening a new issue.
Can anyone suggest what might be causing this error:
It appears to happen on longer queries when we send thru multiple searches. If we send them one at a time they appear to work fine. When we try sending the same queries thru other tools like ldapsearch CLI they all appear to work and return in 20-30 seconds each. However the ldapjs appear to be returning this message back in less than 30 seconds. the idleTimeout connectTimeout and timeout are all set to well over 5 mins.