Closed SerialVelocity closed 2 years ago
I believe the EU endpoint (ot at least the one for norway) is wrong.
This is just a guess as I don't know what I'm doing, but it seems like it tries to retrieve the token from https://security-app-eu.eufylife.com/v1. I am able to retrieve token when using this endpoint: https://mysecurity.eufylife.com/api/v1/passport/login
I have the following error:
2021-11-19 23:02:52.162 INFO Authentication properties changed, invalidate saved cloud token. 2021-11-19 23:02:52.218 INFO Eufy Security server listening on port 3000 2021-11-19 23:02:53.443 INFO Switching to another API_BASE (https://security-app-eu.eufylife.com/v1) and get new token. 2021-11-19 23:02:53.644 ERROR Status return code not 200 { status: 204, statusText: 'No Content' } 2021-11-19 23:02:53.658 ERROR Token error
Eufy has made some changes to its site, which now often results in HTTP errors (204). I have seen that the entry endpoint in the Eufy app has changed. I am trying to understand what has changed and how to get everything working again.
That is the disadvantage of no open API... :(
Anything I can do to help @bropat.
I'm a software engineer (however no experience in typescript) but happy to help if I can.
Let me know if there are any mitm tests I can run as I'm UK based so will get an EU API endpoint.
Hillariously just bought the Eufy2k Wireless Doorbell with hopes/guides on getting it setup in Home Assistant, so keen to get it working! =)
@danstreeter Thank you for the offer, but I think I have solved the problem. I am currently testing the solution. It looks like Eufy is now using HTTP/2 and the library I used does not support it yet.
Ah awesome nice one. Let me know if you need any testing doing. I’m running docker so presumably if I can build the image locally I can test that way if needed.
Describe the bug
Calls seem to be randomly failing and returning 204 errors
To Reproduce
Steps to reproduce the behavior:
Use code:
Expected behavior
Calls to not fail.
Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem. Without debug logging:
With debug logging:
Versions:
Additional context
The calls don't always fail. For example, two calls right after each other: