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
We're getting error influxdb2client E! point encoding error: no serializable fields while sending data to influx cloud. Strangely, after two exact errors, influxdb2client seems to be blocked without any logging.
Hi @powersj Thanks for pointing out. I think I misundertood how the errors are being handled. Explicitly reading off the error channel should work as expected, like the example you refered. On the other hand, I think it can be emphasised in the README that Errors() must be called (it's mentioned in the code comment), then errors be processed, otherwise client may block indefinitely.
Specifications
Steps to reproduce
We're getting error
influxdb2client E! point encoding error: no serializable fields
while sending data to influx cloud. Strangely, after two exact errors, influxdb2client seems to be blocked without any logging.It was found that in method WriteAPIImpl.WritePoint ,
Point
will first be encoded, if that fails, error will be send to channelw.errCh <- err
, which is never consumed. Because errCh is a buffered channel with lenth being 1,WritePoint
blocks on the third encoding errorwrite.Point
WritePoint
on the writeAPI with empty PointExpected behavior
empty point shouldn't block writing
Actual behavior
influxdb2client blocks forever after two errors
influxdb2client E! point encoding error: no serializable fields
Additional info
No response
The text was updated successfully, but these errors were encountered: