-
Notifications
You must be signed in to change notification settings - Fork 76
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
LoginError happens occasionally #222
Comments
Here is my log when the occasional error happens. The model is Amcrest Doorbell AD410. The password does not contain any special chars, as suggested this would be the cause.
The query that fails seems to be
Ocasionally I also see this:
(device serial and domain redacted) |
@junalmeida I think the ReadTimeouts are irrelevant, it just suggests your network is congested or the camera is slow to respond. This LoginError seems to happen randomly with any call. Besides I added It fires 7 async queries at the same time (within 300ms), of which 6 use the same nonce. The one that fails is the only one with a different nonce. The |
I am seeing the same problems. I also noticed that when Home Assistant (using the library) tries to connect with my doorbell and the log show these timeout errors, I can manually connect with the doorbell's api using PostMan without any problem. All the times this happens. I think that about 50% of the time HA fails to connect with the doorbell when it reboots. I just had to reconnect the doorbell and Home Assistant was not able to reconnect:
Eventually it does seem to connect though. |
I see this same issue with an AD410. Intermittent login errors.
|
I'm using this library via Home Assistant and I occasionally see
LoginError
in the log. It always resolves itself within a few seconds, I'm just trying to figure out what causes it. I first posted in home-assistant/core#85859.It seems like this library tries Basic Auth first, which always fails (silently), and then it tries Digest Auth which usually succeeds. I've been trying to reproduce the 401 error with DigestAuth by simulating network congestion with
iptables
but so far I can't. I only notice this happening every few days.My cameras are model IP5M-T1179EW, but that log snippet came from someone else; I'm not sure what model that is.
The text was updated successfully, but these errors were encountered: