InfluxDB api version 2


I have created InfluxDB account on cloud and there are no issue to save sensors data from Home Assistant.

The issue is that I am not able to read sensors data from cloud. I have double checked that the token and the bucket are correct in the sensor configuration, but i always get the following:

2022-07-29 18:36:43 ERROR (SyncWorker_8) [homeassistant.components.influxdb.sensor] InfluxDB bucket is not accessible due to '(401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 29 Jul 2022 15:36:43 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '55', 'Connection': 'keep-alive', 'trace-id': 'cb.................f', 'trace-sampled': 'false', 'x-platform-error-code': 'unauthorized', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Influxdb-Request-ID': 'e40............................4b', 'X-Influxdb-Build': 'Cloud'})
HTTP response body: b'{"code":"unauthorized","message":"unauthorized access"}'
'. Please check that the bucket, org and token are correct and that the token has the correct permissions set.

Any idea why?

Same issue here, did you find out what is causing it?

Any fix for this?

Same issue by me. Please is there any fix? Thanks