plexmedia-downloader icon indicating copy to clipboard operation
plexmedia-downloader copied to clipboard

login failure: KeyError: 'error'

Open PabloDons opened this issue 3 years ago • 2 comments

login fails and it appears this is the culprit:

    def login(self):
        # [...]
        if r.status_code != 200:
            print(r.json()["error"])
            quit(1)

It worked when I changed the status code to 201. Status code for successful login must have changed from previously 200. I recommend to change this to assume success on all 2xx status codes.

PabloDons avatar Dec 19 '22 16:12 PabloDons

You sir, are awesome

cgmckeever avatar Dec 30 '22 23:12 cgmckeever

I am seeing "Logged in as: xxxxx" on top but getting this now -

url = self.server["address"]+self.rating_key ~~~~~~~~~~~^^^^^^^^^^^ KeyError: 'address'

LampPrinter avatar Apr 15 '23 22:04 LampPrinter