Skip to content
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

login failure: KeyError: 'error' #8

Open
PabloDons opened this issue Dec 19, 2022 · 2 comments
Open

login failure: KeyError: 'error' #8

PabloDons opened this issue Dec 19, 2022 · 2 comments

Comments

@PabloDons
Copy link

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.

@cgmckeever
Copy link

You sir, are awesome

@LampPrinter
Copy link

LampPrinter commented Apr 15, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants