gillesvs / librelink

Librelink integration for Home Assistant
MIT License
21 stars 6 forks source link

Unknown error occurred #14

Closed fastrack20 closed 5 months ago

fastrack20 commented 5 months ago

Which country are you from Canada

Describe the bug Can't seem to get the integration to run. I checked my credentials with the LibreLink app and they are correct. I am getting the message "Unknown error occurred" when trying to set up the integration.

Log file

librelinkLog.log

Additional context I did try after to purposely enter the wrong password and I did get an invalid username or password error. I did validate that my credentials seem to be working. I tried using https://libreview-unofficial.stoplight.io/ and I get a 200 response when running the login. It also provides my information such as name, email, country and a what appears to be a valid token.

gillesvs commented 5 months ago

Hello @fastrack20 , Did you use LibreLinkUp app credentials and not librelink? It only works with LibreLinkUp credentials.

fastrack20 commented 5 months ago

Yep. I am using the librelinkup credentials.

On Sun, Mar 3, 2024, 8:12 a.m. Gilles Van Schendel @.***> wrote:

Hello @fastrack20 https://github.com/fastrack20 , Did you use LibreLinkUp app credentials and not librelink? It only works with LibreLinkUp credentials.

— Reply to this email directly, view it on GitHub https://github.com/gillesvs/librelink/issues/14#issuecomment-1975140170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATPWO344FRVDDD7Y5NQP4LYWMHSXAVCNFSM6AAAAABEB4ECDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGE2DAMJXGA . You are receiving this because you were mentioned.Message ID: @.***>

toblob89 commented 5 months ago

I have the same issue and I cannot log in with my credential. It was working until this morning.

fastrack20 commented 5 months ago

For the record, I also reset my credentials, and re logged into the LibreLinkUp app just to make sure they are working. My credentials seem fine, just can't seem to get in via the component.

On Wed, Mar 6, 2024 at 1:53 PM toblob89 @.***> wrote:

I have the same issue and I cannot log in with my credential. It was working until this morning.

— Reply to this email directly, view it on GitHub https://github.com/gillesvs/librelink/issues/14#issuecomment-1981469534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATPWO6T5UYYFTOEYU2ZV23YW5JYFAVCNFSM6AAAAABEB4ECDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGQ3DSNJTGQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Andrew Edmunds

toblob89 commented 5 months ago

Yes in librelinkup app working perfectly fine and indeed it was working with the Integration until this morning, then stopped working. Is there an update on librelinkup server which causes this issue?

gillesvs commented 5 months ago

Yes in librelinkup app working perfectly fine and indeed it was working with the Integration until this morning, then stopped working. Is there an update on librelinkup server which causes this issue?

Hello @fastrack20 @toblob89 You seem to be both on the American zone... maybe the did update an url for the API. On my side I have no problem (europe) so I cannot debug.... do you know your API url? because today the integration is using the global one except for Russia. Maybe this is the issue.

Abbott do not provide any documentation.

toblob89 commented 5 months ago

Hello Gilles, I am in the european User.Surprisingly yesterday I was able to log in via librelinkup app whereas it was not possible to do so via HA Integration. Again suprising this morning it was working and is still working fine again. Maybe some issue on abbot server side ?

fastrack20 commented 5 months ago

@gillesvs Troubleshooting on my own it seems when I query https://api.libreview.io I get a redirect referring to the CA zone. Since I am in Canada I tried directly querying api-ca.libreview.io and it seems to pull data. This was just in my testing with using NodeRed on Homeassistant (how I was accomplishing this before I saw your component).

fastrack20 commented 5 months ago

I manually changed the URL in const.py to api-ca.libreview.io and it worked with the integration.

gillesvs commented 5 months ago

I manually changed the URL in const.py to api-ca.libreview.io and it worked with the integration.

Hello,

I was going to suggest this :-)

So I will add Canada as a choice for the next release mapped with api-ca URL

Thanks for the feedback

dashernln commented 5 months ago

I'm sorry, but it seems that api-de also exists, i will check it out

gillesvs commented 5 months ago

Yes indeed, as ...-fr. But as it works with the global endpoint i didn't botter to use it

Le mer. 13 mars 2024, 07:34, dashernln @.***> a écrit :

I'm sorry, but it seems that api-de also exists, i will check it out

— Reply to this email directly, view it on GitHub https://github.com/gillesvs/librelink/issues/14#issuecomment-1993663625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMG6JI4OX6DQ5C7J4O55OMLYX7XOZAVCNFSM6AAAAABEB4ECDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJTGY3DGNRSGU . You are receiving this because you modified the open/close state.Message ID: @.***>

dashernln commented 5 months ago

yes, it would be better to use one global point, but abbot "think differently". i`ve forked repo, added de api server, now it works. many thanks, it is very useful integration.

gillesvs commented 5 months ago

yes, it would be better to use one global point, but abbot "think differently". i`ve forked repo, added de api server, now it works. many thanks, it is very useful integration.

Hello @dashernln , You are in Germany and the global API does not work?

If so I will add all local endpoint in the configuration. They are already listed in the const.py but I did not thought they were usefull.