-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect and log failed credentials #115
Comments
have you tried to listen to the error event via |
Yes, but I don't think the failed credentials issue end up there - it just keeps trying, as if the Es server is temporarily down. |
If there was a way to detect intermittent errors vs permanent errors I could implement this I guess here are some ideas to filter them for retry:
Not sure about "No living connection" error (means probably no ES is running) |
Hi @vanthome, can you publish the last version of the lib on npm ? I would like to use the library with my previous MR that fix this bug |
When I use wrong credentials for Elastic, the
checkEsConnection
function will retry the check forever. This does not give a clue that the logging is not active due to invalid credentials, which could give a false sense of allrightness.Exit the retryloop and log when the server returns 401?
The text was updated successfully, but these errors were encountered: