-
Notifications
You must be signed in to change notification settings - Fork 13
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
Incompatible with API v2 #13
Comments
Hi @jankap, Could you provide more details about the incompatibilities that you are facing? According to the docs, both However, I am hitting
Is this similar to the problem that you are having? |
Hi @EnricSala, I am also trying to access V2 of the API from matlab right now. I have the same problem regarding the access.
I think the problem is because the API V2 uses tokens for authentication. |
The token issue can be solved approx. like this: opts = weboptions();
opts.HeaderFields = ["Authorization","Token <myTokenFromWebinterface>"];
% api v2
url = obj.Url + "api/v2/";
% api v1, influxDb version >= 2
url = [obj.Url '/query'];
if requiresPost
opts.Timeout = obj.WriteTimeout;
response = webwrite(url, params{:}, opts);
else
opts.Timeout = obj.ReadTimeout;
response = webread(url, params{:}, opts);
end This is part of However, even with api v1 endpoint |
Thanks, @jankap. Can you tell me where in the @EnricSala can you maybe update the
Have you already tried this? At the moment reading from and writing in a existing Database would be fine for me. |
@jankap ah it seems I had missed this ^ from the docs.
@Sp0b1e That's tricky because the library should continue to support v1 users, which at this time is still probably most of them. Will see if I can find some time in the coming week to take a look at this :) |
@EnricSala I just started using Influxdb V2 and was having the same 401 error as the others have explained above. Just was wanted to check if you've come up with a fix for it yet? |
Hi @SaadArshad222, unfortunately I haven't been able to make much progress on this topic as I am quite busy at the moment. Will post a status update when there are new :) |
Hi @EnricSala First of all, many thanks for the tool! |
Thank you very much for this great tool! However, I upgraded my docker container to v2 and it seems that the API is incompatible. Are there any plans to migrate to API v2 or do you know if the old one is fully functional still?
https://docs.influxdata.com/influxdb/v2.0/api/
Thanks!
The text was updated successfully, but these errors were encountered: