Coder Social home page Coder Social logo

Authentication Failed about pyaarlo HOT 13 CLOSED

twrecked avatar twrecked commented on June 7, 2024
Authentication Failed

from pyaarlo.

Comments (13)

twrecked avatar twrecked commented on June 7, 2024

That is strange. Was there any debug before this?

Can you try playing with the user agent and hosts file as described here.

from pyaarlo.

mikerossoft avatar mikerossoft commented on June 7, 2024

This issue is affecting other Arlo API integrations as well.
I think Cloudflare rules might have changed.
Not sure what specifically they are blocking on.

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

I am seeing this issue as well. I would alter the 'user-agent' as suggested above, but I'm not sure what it should look like.

from pyaarlo.

twrecked avatar twrecked commented on June 7, 2024

Of course it's still working fine for me... I'll double check the headers I pass in and make sure everything looks good.

One question, how are you using pyaarlo? Are you staying logged in or constantly logging in and out?

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

I'm using pyaarlo, and I'm staying logged in.

I tested with the other options for user_agent in "constants.py", and all of them produce the same error.

I stopped the service (my code) today to add something, and upon starting it again, these errors came up.

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

2022-02-24 10:56:20,237 - pyaarlo - DEBUG - login attempt #3
2022-02-24 10:56:20,237 - pyaarlo - DEBUG - request-url=https://ocapi-app.arlo.com/api/auth
2022-02-24 10:56:20,237 - pyaarlo - DEBUG - request-params=
{'EnvSource': 'prod',
'email': '[email protected]',
'language': 'en',
'password': 'hahahahaha'}
2022-02-24 10:56:20,238 - pyaarlo - DEBUG - request-headers=
{'Accept': 'application/json, text/plain, /',
'Auth-Version': '2',
'Referer': 'https://my.arlo.com',
'Source': 'arloCamWeb',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, '
'like Gecko) Chrome/88.0.4324.96 Safari/537.36'}
2022-02-24 10:56:20,260 - urllib3.connectionpool - DEBUG - https://ocapi-app.arlo.com:443 "POST /api/auth HTTP/1.1" 403 None
2022-02-24 10:56:20,261 - pyaarlo - DEBUG - request-end=403
2022-02-24 10:56:21,262 - pyaarlo - ERROR - authentication failed

from pyaarlo.

scuc avatar scuc commented on June 7, 2024

I'm having the same authentication issue, it started sometime on February 17.
Has anyone determined how exactly we need to alter the user-agent/host file
in order to get it working again?

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

I am still receiving the same error. In looking at the TCP traffic from my phone (which works), there are two new IP addresses involved. 104.18.0.211 seems to be the one the phone contacted when logging into the Arlo service. Also 104.18.1.211

from pyaarlo.

twrecked avatar twrecked commented on June 7, 2024

What version of Pyaarlo are you running? Your headers looks wrong, mine look like this:

2022-02-28 23:17:57,268 - pyaarlo - DEBUG - request-headers=                                                                                     
{'Accept': 'application/json, text/plain, */*',                                                                                                  
 'Accept-Language': 'en-US,en;q=0.9',                                                                                                            
 'Origin': 'https://my.arlo.com',                                                                                                                
 'Referer': 'https://my.arlo.com/',                                                                                                              
 'Source': 'arloCamWeb',                                                                                                                         
 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, '                                                                     
               'like Gecko) Chrome/88.0.4324.96 Safari/537.36'}

There is no Auth-Version and I have an Origin header.

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

pyaarlo-0.7.1.2

I am pulling via "pip" into Python 3.9

from pyaarlo.

pfcurtis avatar pfcurtis commented on June 7, 2024

NOTE: I cloned the repo, and re-ran the basic "test.py". This seems to work properly, so there is something incorrect about the PyPi build that is retrieved via "pip". "pip" shows version 0.7.1.2" "Successfully installed pyaarlo-0.7.1.2"

Using the cloned repo, I get the correct headers as you have indicated in the above comment.

2022-03-03 06:12:42,399 - pyaarlo - DEBUG - request-params=
{'EnvSource': 'prod',
'email': '[email protected]',
'language': 'en',
'password': 'hahahahaha'}
2022-03-03 06:12:42,400 - pyaarlo - DEBUG - request-headers=
{'Accept': 'application/json, text/plain, /',
'Accept-Language': 'en-US,en;q=0.9',
'Origin': 'https://my.arlo.com',
'Referer': 'https://my.arlo.com/',
'Source': 'arloCamWeb',
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X) '
'AppleWebKit/604.3.5 (KHTML, like Gecko) Mobile/15B202 '
'NETGEAR/v1 (iOS Vuezone)'}

from pyaarlo.

twrecked avatar twrecked commented on June 7, 2024

Damn, I forgot about PyPi. I'll push a fix for this to 0.7.

from pyaarlo.

meavydev avatar meavydev commented on June 7, 2024

Thanks.
The latest version seems to be working for me again, so closing.

from pyaarlo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.