InfluxCommunity / influxdb3-js

The JavaScript Client that provides a simple and convenient way to interact with InfluxDB 3.
https://influxcommunity.github.io/influxdb3-js/
MIT License
13 stars 4 forks source link

fix: handle Edge errors #376

Closed alespour closed 1 month ago

alespour commented 1 month ago

Proposed Changes

Extends error response processing to handle Edge (OSS) errors as well. It sets Error.message value from either message (Cloud) or data.error_message / error (Edge) element value in the response body when an InfluxDB error occurs.

Checklist

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.57%. Comparing base (e810f0d) to head (d0d26f2). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #376 +/- ## ======================================= Coverage 97.57% 97.57% ======================================= Files 23 23 Lines 908 908 Branches 214 214 ======================================= Hits 886 886 Misses 10 10 Partials 12 12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.