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
Sending logs in bulk is currently broken in version 4.0.1 of the library, because only one of the logs is sent to Loggly while others are disarded. The http request options contain the wrong data.
Sending logs in bulk is currently broken in version 4.0.1 of the library, because only one of the logs is sent to Loggly while others are disarded. The http request options contain the wrong data.
Reproduction script:
Sent axios request options
Expected axios request options
I think the issue is related to migration from
request
library toaxios
library. Thedata
in requestOptions is set tobody
.Fix
This issue can be fixed by changing
.body
to.data
in common.js#236. But I'm not sure if this is the correct solution.https://github.com/loggly/node-loggly-bulk/blob/39163147f9bc028850935a08faa76bbe09cd01f8/lib/loggly/common.js#L236C21-L236C21
The text was updated successfully, but these errors were encountered: