Skip to content

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

@nottisa

Description

@nottisa

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'```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions