thinger-io / thinger-server

Thinger.io Server Repository
MIT License
3 stars 0 forks source link

Return response of Bad Requests from Influx to parent request #52

Open bautisflow opened 1 year ago

bautisflow commented 1 year ago

Is your feature request related to a problem? Please describe. When writing to a bucket from Node-RED, if the write fails the only message returned from Thinger server is {"error":{"message":""}}, while influx is returning {"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field "testing" on measurement "id" is type boolean, already exists as type string dropped=1"}

This improvement will make it easier for the user to identify the cause of the error.

Describe the solution you'd like Just respond the same body as Influx is returning

Describe alternatives you've considered No alternatives

Additional context error-bad-request-check-node-configuration