Skip to content

Suggestion: clarify cookie string structure #1

@rsazra

Description

@rsazra

Just started using this tool and really liking it so far, but had some trouble getting the testing/submitting working.

For future users, I think it might be helpful to clarify what the cookie needs to look like. The README gives the cookie a description of "Leetcode session cookie" with an example value of "abc123def456ghi789jkl0", and I initially just set my cookie with LEETCODE_SESSION cookie. My browser shows cookie values individually, so I only realized later that I also needed to have csrftoken set, which I manually added in the config.

An example value of "csrftoken=abc123;LEETCODE_SESSION=xyz098" would've helped me get set up quicker.

Also would be nice to surface this error to the user. I was getting a 499 Client Error when I tried testing. I see the code in config_manager.py already sends a logger error for missing CSRF token, but I didn't see this error in my terminal.

Really appreciate the project!

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