logdna / logdna/fluent-plugin-logdna

provide Response Code and Message if Server Error on Write

Open
#20 0 comments 1 reaction 4 assignees Claimed by @smusali View on GitHub
Dominant language
Ruby
Stars
2
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Current Behavior:
When performing a `write` operation in which an error of `>= 400` raises the ambiguous error `'Encountered server error'`.

Desired Behavior:
The desired behavior would be to provide the actual `response.code` and, if available, `response.message` or similar.

Line/Modification Requested:
Currently in master, in file fluent-plugin-logdna/lib/fluent/plugin/out_logdna.rb, line 44 reads `raise 'Encountered server error' if response.code >= 400`. Link: https://github.com/logdna/fluent-plugin-logdna/blob/6f28630169ee71380be28a75d6e245a4def3156f/lib/fluent/plugin/out_logdna.rb#L44

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.