-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
403 Client Error: Forbidden for url: https://ocapi-app.arlo.com/api/auth #204
Comments
FYI, it looks like scrypted issued a patch to deal with the exact same type of 403 issue. Also, the issue appeared around May 10 right around same time as the issue that I am seeing. Trying to understand exactly what they did to fix the issue, no comments in the code. |
Just took a quick look, but it looks to me like the assumption is that CloudFlare is causing the issue. So they hardcoded some IP's direct to Arlo (in base64), and if the main one fails, they try to find one of those with the correct SSL cert, and use that instead. Doesn't seem like a great option, since those IP's can change at any time (and if I checked right, at lest one is already not pointing at Arlo.) |
Hmm, not even sure the scrypted solution works at all anymore. The API is protected behind CloudFront. Have not found any way to access it. And all the IP:s are broken as well. Perhaps better luck building a "private server" for the Arlo cameras. |
I'd guess CloudFlare is doing some sort of TLS fingerprinting or similar. I played around a bit, both using Cloudscraper and swapping around the TLS cipher order. Didn't have any luck. I'll wait a bit to see what anyone else comes up with, but at this point I may just go with another vendor if Arlo doesn't want me to have access to my own recordings. |
Well, given this: koush/scrypted@8eb533c |
I had a similar issue with Arlo and Cloudscraper based on another Python module (https://github.com/m0urs/arlo-fhem). For me, the Cloudflare login issue has been resolved by adding this parameter to the cloudscraper call: self._session = cloudscraper.create_scraper(ecdhCurve='secp384r1') together with Cloudscraper 1.2.71 and the following User Agent String:
Not sure if the last two things are related to that, but the Cloudscraper parameter definitely has been necessary for me. Maybe it could resolve the issue for others as well ... |
@m0urs thank you for the suggestions, but I'm unclear as to where exactly i should add the cloud scraper call into my code. |
To be honest, I do not know this code here, but I guess that something similar is used to handle the Cloudflare checking for HTTP requests. Maybe @jeffreydwalter should know how this code is doing it and maybe there are similar settings. |
In arlo.py at line 139, something like this could be done: |
@tomelsj thanks for the suggestions, i tried it, unfortunately, still get a 403 error, so frustrating - |
Did you wait a day between the last login try without the parameter and the next try with the parameter? If not, please wait some hours until Cloudflare has unbanned your IP address. |
@m0urs yes, i updated my code and waited a few days before trying again |
I still have not been able to get this to work. |
Any updates for this error? |
Hoping for any leads/fixes for this error. Unsure if it is possible to proceed without a fix |
@bjia56 - im circling back to this issue - trying out your fix, but getting the error below.
|
ok never mind, I just went through the google MFA steps again and re-created the credentials and now it works!!!! |
Last I knew @jeffreydwalter was no longer using this library .. maybe time for a hand-off of fork? |
yeah, I hope we can keep this library alive, I have a lot of money invested in Arlo cams. And all I really |
Is anyone else seeing this 403 Client Error?
I started to see it on May 09, my script runs automated
so I didn't actually notice this issue in my logs
until last week.
I thought maybe it was an MFA issue,
so I've tried to add MFA as explained in the wiki,
but I cant even get past the 403 error.
What version of Python are you using (
python -V
)?Python 3.10.4
What operating system and processor architecture are you using (
python -c 'import platform; print(platform.uname());'
)?('Darwin', 'MacPro-Mojave.local', '18.7.0', 'Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64', 'x86_64', 'i386')
Which Python packages do you have installed (run the
pip freeze
orpip3 freeze
command and paste output)?Which version of ffmpeg are you using (
ffmpeg -version
)?Which Arlo hardware do you have (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)?
not relevant
What did you do?
This code was working for me up without MFA until May 09 2023 - I thought maybe it was an MFA issue, so
I added MFA to the code, but still getting the same errrors.
What did you expect to see?
I use the code listed above to download a local copy of my arlo videos.
What did you see instead?
Does this issue reproduce with the latest release?
yes. same results. in .59 and .64,
ive tried connecting through a VPN to see if I my IP was being blocked,
i can also confirm that I have tried multiple user accounts - in each case
I can log in just fine through the arlo web portal, but get the 403 when using the Arlo code.
The text was updated successfully, but these errors were encountered: