Skip to content
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

Token error #46

Closed
sanderjohan opened this issue Nov 19, 2021 · 3 comments
Closed

Token error #46

sanderjohan opened this issue Nov 19, 2021 · 3 comments
Assignees
Labels

Comments

@sanderjohan
Copy link

Hi,

I am trying to get the Eufy Security Add-on working and I get the following log:

2021-11-19 20:39:27.076 INFO Authentication properties changed, invalidate saved cloud token.
2021-11-19 20:39:27.090 INFO Eufy Security server listening on port 3000
2021-11-19 20:39:27.846 INFO Switching to another API_BASE (https://security-app-eu.eufylife.com/v1) and get new token.
2021-11-19 20:39:27.901 ERROR Status return code not 200
{
status: 204,
statusText: 'No Content'
}
2021-11-19 20:39:27.904 ERROR Token error

Any idea what to do?

@Malnes
Copy link

Malnes commented Nov 19, 2021

I have the same issue. My guess is that the url is wrong. I tried to run some http requests to the eufy api a coupe of months ago, and I had to change the url for it to work. I cant find the script i made, and dont remember what the new url was. I guess by your username that you have set he country to NO aswell.

Edit1:
Seems like it is the correct endpoint for eu: https://community.hubitat.com/t/release-eufy-security-alpha/65487/22

Edit2:
when i run a webrequest to the following URL with a body containing username and password, i get the token in return
https://mysecurity.eufylife.com/api/v1/passport/login
According to the integration log, it tries to retrieve the token from another url. Which means I'm back to my original theory that it tries to retrieve token from the wrong endpoint.

Disclaimer: I dont know that I'm doing.. :)

@Malnes
Copy link

Malnes commented Nov 20, 2021

seems the error is with bropat/eufy-security-client

bropat/eufy-security-client#67

@danstreeter
Copy link

danstreeter commented Nov 20, 2021

I had this error (Running in Docker) and changed my COUNTRY env var from GB to gb which enabled it to get past this inital step, getting different errors now but at least got past that one.

Update - Scrap that, Just reset my persistant.json file to try and debug my other issues and now get this error again.
2nd Update - Re running my container seems to then work... maybe it needs to run twice?

bropat added a commit that referenced this issue Nov 20, 2021
Updated dependency eufy-security-client to 1.3.0
@bropat bropat self-assigned this Nov 20, 2021
@bropat bropat added the fixed label Nov 20, 2021
@bropat bropat closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants