Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Error in documentation about timeout argument? #916

Open
Elektordi opened this issue Apr 21, 2022 · 0 comments
Open

Error in documentation about timeout argument? #916

Elektordi opened this issue Apr 21, 2022 · 0 comments

Comments

@Elektordi
Copy link

Elektordi commented Apr 21, 2022

In this page:
https://influxdb-python.readthedocs.io/en/latest/api-documentation.html

The "timeout" argument of InfluxDBClient are documented as:
number of seconds Requests will wait for your client to establish a connection, defaults to None
But in reality it is the maximum total length of the query (not just connection phase), and value is in milliseconds (not seconds).

I have a long query, about 5 minutes, tried it with timeout=3600 but following exception is raised:
ReadTimeoutError: HTTPConnectionPool(host='10.x.x.x', port=8086): Read timed out. (read timeout=3.592902796017006)
So there is definitively a mismatch in the documentation...

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

No branches or pull requests

1 participant