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
winston - 3.3.3
winston-loki - 6.0.3
transport - http
Hello! When Loki returns status code 301 or 400 for POST /loki/api/v1/push transport request does not emit error event and batcher treats this case as successful sending. Looks like this behavior is unexpected, can you please comment on that?
The text was updated successfully, but these errors were encountered:
Unfortunately, this PR seems not to fix my problem, because 301 and 400 codes do not lead to error event emit. Here is some code snippet based on your requests.js code:
request starts
response status: 400
on ended
awaited
So, function promise will be never rejected and onConnectionError() from #97 will be never called. I suggest that status code from loki should be checked before resolving.
winston - 3.3.3
winston-loki - 6.0.3
transport - http
Hello! When Loki returns status code 301 or 400 for POST /loki/api/v1/push transport request does not emit error event and batcher treats this case as successful sending. Looks like this behavior is unexpected, can you please comment on that?
The text was updated successfully, but these errors were encountered: