-
Notifications
You must be signed in to change notification settings - Fork 117
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
Unconfigurable timeout causing long queries to fail. #94
Comments
@allstream, unfortunately, it is not configurable now. We will make this configurable in the next version. You should be able to work-around this by manually changing the library sources in the package folder. |
@vlastahajek Thanks for the quick response. To answer your question about heavy load / lots of results: |
@allstream, I've managed to add the update for this in the version we've released today. Check new version, please, if it works for you. The default timeout remained the same, but you can change it easily: client := influxdb2.NewClientWithOptions("http://localhost:9999", "token", DefaultOptions().SetHttpRequestTimeout(50)) |
@vlastahajek Got the new version and changed my code and it's all working great! took 24 seconds to run my query. Thanks a lot! |
influxdb-client-go/client.go
Line 85 in b0a0379
The Line above is unconfigurable through the provided API-Interface and it essentially seems to force all queries to be <=20 seconds. Am I missing something or is this configurable? I can't seem to get around it.
I constantly get the error:
Post "https://localhost/api/v2/query?org=testing_queries": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
The text was updated successfully, but these errors were encountered: