Influxdb cloud with Node red

Hello Im using NODE-RED in a Raspberry PI, with influxDB.

Now I want to send the information to INFLUXDB CLOUD, using the same node but with the 2.0 parameters.

I use all the configuration required, URL:, TOKEN, Organization and Bucket, but I receive the following error.

ERROR: Write to InfluxDB failed. d [HttpError]: insufficient permissions for write
at IncomingMessage. (/opt/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts:255:13)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
statusCode: 403,
statusMessage: ‘Forbidden’,
body: ‘{“code”:“forbidden”,“message”:“insufficient permissions for write”}’,
contentType: ‘application/json; charset=utf-8’,
json: { code: ‘forbidden’, message: ‘insufficient permissions for write’ },
code: ‘forbidden’,
_retryAfter: 0
8 Mar 21:48:24 - [error] [influxdb out:2e73380e.b8ee38] HttpError: insufficient permissions for write

Is any permission I need to do in the Influxdb Cloud?


Make sure that the TOKEN actually has the write permissions for this bucket.
This is a typical error. There are “All Access” tokens, the other tokens depend on the bucket.

Thank you very much, I add all permissions and worked well.

Can you post your node-red flow including Influxdb cloud node please? I was using node-red with local influxdb and Grafana, but now trying to use cloud one and don’t know where to start.

Thank you in advance,