Code Monkey home page Code Monkey logo

Comments (9)

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Hi Len,

I'm not aware of any changes. I'll do a little testing later today.

from arlo.

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Hey Len, as far as I can tell, nothing has changed. I logged into their UI and watched the requests. Can you check the system time on your pi?

from arlo.

LenShustek avatar LenShustek commented on May 16, 2024

The system time is correct, and I've rebooted several times.
It looks like the login succeeds, and then it returns a "401 Client Error: Unauthorized" error while trying "basestations = arlo.GetDevices('basestation')"

from arlo.

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Odd. It works fine for me. I just tested. Stupid question here, but did you happen to change your password or anything like that?

Edit: Nevermind, I see you said you didn't change your login info.

from arlo.

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Or update any python packages?

from arlo.

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Can you add some debugging to Arlo.py for me? Maybe dump the r in the line that does the http request.

r = requests.get(url, headers=headers, cookies=cookies, stream=stream)

from arlo.

LenShustek avatar LenShustek commented on May 16, 2024

Well (blush) I did try updating stuff when it starting failing, so I don't want you to spend a lot of time on this. I might have my PI in an inconsistent state. But it started failing (on both my systems, which use different logins) before I changed anything; I've never changed the userids or passwords.

Using the original 2-year-old code, logging in appears to succeed.
Before the line "r = requests.get(url, headers=headers)" in the get function,
the url is 'https://arlo.netgear.com/hmsweb/users/devices'
and headers is { 'Authorization': '2_5ZUbjyTDdO-odN1dYkQIsPeMbWOcrRtLNin0STbxS_ZmIibW32sprYHvcoVToh_HmCLtFY2NhIju7WRdZyPEbjlpeQ2ffllftvJ3b46j8LaTY9weHJ6PBsTfk2U0JyEzGy_Xz0l23M_b1jqnBhLNtzTcieuvdIA75Apj75-PsHhH'}

Then after requests.get the result r is <Response [401]>
and it raises an exception.

from arlo.

LenShustek avatar LenShustek commented on May 16, 2024

Guess what? Several weeks after it started failing, it suddenly starting working again, without me doing anything! This is for two different Raspberry Pis controlling different cameras with different account logons in different houses in different cities. (I had updated the Python version on one of them when the problem started, but the other one hasn't been touched in two years.)

I can only surmise that Arlo temporarily broke something in the way they respond to the commands that your two-year-old code issues, but then fixed it.

Sorry for the false alarm...

from arlo.

jeffreydwalter avatar jeffreydwalter commented on May 16, 2024

Great news! Thanks for the update. I would highly recommend checking out the latest and greatest code. The API hasn't changed all that much (it has changed) and there have been several bug fixes and new APIs added. That being said, if it ain't broke... :)

from arlo.

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.