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

InfluxDBClientError: 401: {"code":"unauthorized","message":"Unauthorized"} #29

Open
Otemohu opened this issue Aug 9, 2023 · 0 comments

Comments

@Otemohu
Copy link

Otemohu commented Aug 9, 2023

Hello,
Thank you for your contribution about the import of csv files into InfluxDB.
I'm trying the code since several days and I do not succeed in resolving the error mentionned in the subject : InfluxDBClientError: 401: {"code":"unauthorized","message":"Unauthorized"}
I putted the login and password in the line code as indicated in the help of csv-to-influxdb and this is what I obtain :
Read 792 lines
Inserting 792 datapoints...
Problem inserting points for current batch
Traceback (most recent call last):
File "csv-to-influxdb.py", line 211, in
loadCsv(args.input, args.server, args.user, args.password, args.dbname,
File "csv-to-influxdb.py", line 151, in loadCsv
raise e
File "csv-to-influxdb.py", line 147, in loadCsv
response = client.write_points(datapoints)
File "C:\Users\Ecologie\anaconda3\lib\site-packages\influxdb\client.py", line 603, in write_points
return self._write_points(points=points,
File "C:\Users\Ecologie\anaconda3\lib\site-packages\influxdb\client.py", line 681, in _write_points
self.write(
File "C:\Users\Ecologie\anaconda3\lib\site-packages\influxdb\client.py", line 413, in write
self.request(
File "C:\Users\Ecologie\anaconda3\lib\site-packages\influxdb\client.py", line 378, in request
raise InfluxDBClientError(err_msg, response.status_code)
influxdb.exceptions.InfluxDBClientError: 401: {"code":"unauthorized","message":"Unauthorized"}

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