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

Can not load response cookies... #1842

Closed
vg-pulsepoint opened this issue Apr 25, 2017 · 2 comments
Closed

Can not load response cookies... #1842

vg-pulsepoint opened this issue Apr 25, 2017 · 2 comments
Labels

Comments

@vg-pulsepoint
Copy link

What do these warnings mean and how do I get rid of them?

2017-04-25 17:11:47,613 -  6269 - aiohttp.client - WARNING - Can not load response cookies: Illegal key '/'
2017-04-25 17:11:47,614 -  6269 - aiohttp.client - WARNING - Can not load response cookies: Illegal key '/'
2017-04-25 17:11:47,614 -  6269 - aiohttp.client - WARNING - Can not load response cookies: Illegal key '/'
2017-04-25 17:12:28,244 -  6269 - aiohttp.client - WARNING - Can not load response cookies: Illegal key '{05DAD3A3-7484-411E-9233-D9F052219632}-CurrentCycle'
@asvetlov
Copy link
Member

It means server sends malformed cookies: they are cannot be parsed by http.cookies.SimpleCookie.load() method.

The only way you could do for loading illegal cookies is parsing it yourself from resp.headers['SET-COOKIE'] using regular expressions for example.

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants