twrecked / pyaarlo

Asynchronous Arlo Component for Python
GNU Lesser General Public License v3.0
50 stars 34 forks source link

authentication error #153

Open c3p0vsr2d2 opened 6 months ago

c3p0vsr2d2 commented 6 months ago

Seeing an authentication error for the past week or so ... is anyone else noticing similar issues?

burner1024 commented 4 months ago

Doesn't work for me all. Doesn't help that error messages are cryptic, even with debug settings on.

twrecked commented 4 months ago

@burner1024 not going to disagree, but what are you seeing? If you paste something in here I might be able to let you know what is going wrong.

burner1024 commented 4 months ago
authentication failed
authentication failed

That's it.

twrecked commented 4 months ago

If you know your Arlo username and password this will be a cloudflare issue.

I guess I had been thinking about this recently. I just pushed a branch I've been working on - https://github.com/twrecked/pyaarlo/tree/better-errors

Can you try it? I started on it a few months ago and I'm not sure what state it is in and I won't get a change to try until later but it might help you.

burner1024 commented 4 months ago
login failed: 403 - possible cloudflare issue
login failed: 403 - possible cloudflare issue

Strangely, sometimes I get

error in new response={'meta': {'code': 400, 'error': 9204, 'message': 'Browser is not trusted'}}
login failed: 2fa: no secondary choices available
login failed: 403 - possible cloudflare issue

When running exactly same code.

twrecked commented 4 months ago

Welcome to Cloudflare - where the errors are made up!

Try changing some of the values mentioned here.

These are done from with arguments to PyArlo not with aarlo.yaml, but I hope it makes sense.

twrecked commented 4 months ago

The 2fa thing might be working. Do you have 2fa set up for this account?

burner1024 commented 4 months ago

Yes. I don't think there's an option to not set it up, is there?

twrecked commented 4 months ago

I need how you are calling PyArlo and some debug.

You can use this link to encrypt the output.

burner1024 commented 4 months ago

Thank you for your assistance @twrecked. It appears that the IP address from which I was testing was simply blocked by Cloudflare. Playing with ecdh_curve and user agent didn't help. (I finally just visited https://ocapi-app.arlo.com/ in browser, and it didn't even offer a captcha, just straight up block). Maybe due to multiple login failures, maybe just Cloudflare algos going crazy.

It works intermittently on another IP. I'll try some more debugging later.

Some suggestions:

twrecked commented 4 months ago

Thanks for trying the new code. Cloudflare is always fun (!) to debug, I have 2 machines on the same network that need different setting to make them work...

Sometimes you just have to wait a few hours for Cloudflare to reset something. It might work later.

And suggestions noted, I'll get them into the error branch.