-
Notifications
You must be signed in to change notification settings - Fork 95
unauthorized access with beta 1 #53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
on influxdb itself i see the following in the log:
|
Hi @OneCyrus, The client doesn't have compatibility requirements between alpha and beta. I added build over beta - https://circleci.com/gh/influxdata/influxdb-client-csharp/239 and tests passed. Please, try validate token via: curl -i -X POST 'http://localhost:9999/api/v2/write?org=my-org&bucket=my-bucket' \
-H 'Authorization: Token my-token' \
-d 'h2o,location=west level=1' Regards |
with curl it works. so either there is something strange in my code (which used to work with the alpha) or I'm hitting an edge case with the lib. |
You could enable tracing HTTP header information via LogLevel: Client.SetLogLevel(LogLevel.Headers); and check if a token is correct. |
my breakpoint doesn't hit here:
so it doesn't inject the authentication token. |
It's caused by calling InfluxDBClient.Dispose(). You should call Dispose on Client as a last statement. |
i don't dispose it myself. the issue is that InfluxDB hadn't authentication on the writeAPI until recently. so it breaks now. looks like this never worked in the client itself. older releases have the same issue. |
it looks like there are also some concurrency issues. when using() (which auto disposes) is used the client usually signs out before the queue is processed. |
I think it's a combination of recent changes in Currently I am working on fix in branch |
Hi @OneCyrus, If you would like to test a fixed version use our nightly build with fixed
Regards |
looks good even under heavy load! thank you! |
Thanks for cooperating! The issue is fixed in 1.4.0 milestone and release is planned to next week. Regards |
I can't get this to work with the new InfluxDB v2.0 beta 1. i always get a "unauthorized access" exception. i tried to run influx db beta 1 on multiple systems and with different access tokens. the error was always the same.
are there some compatibility changes in beta 1? with the alphas it worked fine.
The text was updated successfully, but these errors were encountered: