Closed lothkang closed 1 year ago
Haven't came across that issue yet. I'm just unable to download anything new,
401 is Unauthorized, so you don't have one or more of the session variables set correctly. I'm not sure why get_subscriptions isn't exiting, but it's trying to get the subscriptions, that's returning a 401, and somehow it's returning instead of exiting, and returning None. Then when it tries to iterate over None, it's blowing up.
You're logged out in your browser either because you were logged out before running the script because the browser was using out-of-date auth information (probably the user agent changed), or when you tried to log in via the script with incorrect credentials it invalidated your session ID effectively logging you out everywhere.
Executive summary: Update the session variables. I just ran the script with up-to-date session variables and it worked fine.
lol. It turns out I had out-of-date code. Now get_subscriptions returns instead of exiting if the request to get all the subscriptions fails (via commit 1876036, which seems like a flawed change, it just means the for PROFILE in PROFILE_LIST
is going to blow up). So my conclusion stands: you have outdated session variables, although now I see why you're getting the error you are.
Interesting.I made sure to update all thre variables and use the most up to date browser version. I even made sure to clear cookies in my browser and log in to a clear session.
OK, I've just started over. Re downloaded the script and created a new browser profile, just to be sure, and now it works.
Whenever I run the script, I get the following:
Once I return to my browser and refresh the page, I'm logged out.