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

KeyError: 'set-cookie' [bug] #62

Open
nottisa opened this issue Oct 13, 2022 · 7 comments
Open

KeyError: 'set-cookie' [bug] #62

nottisa opened this issue Oct 13, 2022 · 7 comments

Comments

@nottisa
Copy link

nottisa commented Oct 13, 2022

This is an error I get on a fresh install and the only code is the login code. This is running on replit.

    self.login(password)
  File "/home/runner/scratchbot/venv/lib/python3.8/site-packages/scratchclient/ScratchSession.py", line 66, in login
    self.session_id = re.search('"(.*)"', request.headers["Set-Cookie"]).group()
  File "/home/runner/scratchbot/venv/lib/python3.8/site-packages/requests/structures.py", line 52, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'set-cookie'```
@nottisa nottisa closed this as completed Oct 13, 2022
@nottisa nottisa reopened this Oct 13, 2022
@nottisa
Copy link
Author

nottisa commented Oct 13, 2022

I saw the replit thing... but I still get this error:

  File "/home/runner/scratchbot/venv/lib/python3.8/site-packages/scratchclient/ScratchSession.py", line 34, in __init__
    self.get_csrf_token()
  File "/home/runner/scratchbot/venv/lib/python3.8/site-packages/scratchclient/ScratchSession.py", line 83, in get_csrf_token
    "scratchcsrftoken=(.*?);", request.headers["Set-Cookie"]
  File "/home/runner/scratchbot/venv/lib/python3.8/site-packages/requests/structures.py", line 52, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'set-cookie'
 

@CubeyTheCube
Copy link
Owner

This happens when your login credentials are incorrect.

@nottisa
Copy link
Author

nottisa commented Oct 31, 2022

Minus the part where the credentials are correct.

@noverd
Copy link

noverd commented Nov 22, 2022

on replit scratch auth has broken
use cookie auth, without username and pass

@nottisa
Copy link
Author

nottisa commented Nov 22, 2022

I saw that post. I tried using the cookie, and it didn't work. Sooooo

@JustAnEric
Copy link

Hi, I am having the same issue, this is getting pretty bad

@nottisa
Copy link
Author

nottisa commented Mar 7, 2023

It's probably not going to be fixed soon as this repo is no longer updated. I could be wrong, but right now I have no time to update it.

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

4 participants