Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigation.courseGreatCircle.nextPoint.bearingMagnetic is occasionally output as a stringified number #137

Open
mairas opened this issue Jul 23, 2024 · 1 comment

Comments

@mairas
Copy link

mairas commented Jul 23, 2024

Earlier today, I enabled some additional outputs in derived-data. I was now checking the SK server logs, and found the following:

ERROR: Write to InfluxDB failed. m [HttpError]: failure writing points to database: partial write: field type conflict: input field "value" on measurement "navigation.courseGreatCircle.nextPoint.bearingMagnetic" is type float, already exists as type string dropped=16
    at IncomingMessage.<anonymous> (/home/pi/.signalk/node_modules/@influxdata/influxdb-client/dist/index.js:5:5671)
    at IncomingMessage.emit (node:events:526:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  statusCode: 422,
  statusMessage: 'Unprocessable Entity',
  body: '{"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field \\"value\\" on measurement \\"navigation.courseGreatCircle.nextPoint.bearingMagnetic\\" is type float, already exists as type string dropped=16"}',
  contentType: 'application/json; charset=utf-8',
  json: {
    code: 'unprocessable entity',
    message: 'failure writing points to database: partial write: field type conflict: input field "value" on measurement "navigation.courseGreatCircle.nextPoint.bearingMagnetic" is type float, already exists as type string dropped=16'
  },
  code: 'unprocessable entity',
  _retryAfter: 0
}

I checked the existing data in InfluxDB2 for that path and found the following:

Screenshot 2024-07-23 at 20 12 09

So, it seems the path is occasionally written as a float number cast to string.

@mairas
Copy link
Author

mairas commented Jul 23, 2024

I have one data source providing navigation.magneticVariation with a null value. I'm about to deprioritize it, but maybe that is the cause?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant