ERROR: Write to InfluxDB failed. m [HttpError]: failure writing points to database: partial write: points beyond retention policy dropped=516
at IncomingMessage. (D:\work\tests\node_modules@influxdata\influxdb-client\dist\index.js:5:5671)
at IncomingMessage.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1408: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: points beyond retention policy dropped=516”}’,
contentType: ‘application/json; charset=utf-8’,
json: {
code: ‘unprocessable entity’,
message: ‘failure writing points to database: partial write: points beyond retention policy dropped=516’
},
code: ‘unprocessable entity’,
_retryAfter: 0
}
这个报错是需要哪里调整呢
Hello @jingwei_luo,
The error message you’re encountering indicates that some of the data points you’re trying to write to InfluxDB are being dropped because they fall outside the retention policy of the target database. To resolve this, you need to ensure that the data you’re writing falls within the retention policy timeframe.
I’d create a new bucket with the right retention policy.