I am facing a weired issue on ldapjs-client V0.10.0 with fastify V1.1.1
Below snippet working fine for couple of day. Suddenly throwing UnwillingToPerformError. It is working fine if we restart the server again,error is same after couple of days.
const authClient = new LdapClient({
url: config.ldap.url,
tlsOptions: tlsOptions,
timeout: 5000,
connectTimeout: 1000
})
var userDN = 'uid=' + username + ',ou=test,dc=test,dc=test'
await authClient.bind(userDN, password)