Skip to content
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

Reporting error responses from the Loki server #163

Open
gkostov opened this issue Jul 26, 2024 · 0 comments
Open

Reporting error responses from the Loki server #163

gkostov opened this issue Jul 26, 2024 · 0 comments

Comments

@gkostov
Copy link

gkostov commented Jul 26, 2024

Hey,

I've been trying to set this up and, of course, while still trying to figure out the proper configuration set I've not added my auth credentials and the Loki server's been rejecting my logs. But the library was not reporting those errors even if I've set the onConnectionError option. After some debugging and looking through the code it appears that only actual connection errors will get reported there and successful requests resulting in failure responses will not. Are there any plans to expose this kind of errors? I understand that configuration errors should get caught early in development and never appear in production but still there is a chance that the remote side may change for some reason and start to reject my calls, so my code will need some way of detecting such conditions.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant