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

CookieJar error #1203

Closed
atlantis414 opened this issue Sep 21, 2016 · 2 comments
Closed

CookieJar error #1203

atlantis414 opened this issue Sep 21, 2016 · 2 comments
Labels

Comments

@atlantis414
Copy link

atlantis414 commented Sep 21, 2016

Error handling request
Traceback (most recent call last):
File "C:\Python35\lib\site-packages\aiohttp\server.py", line 261, in start
yield from self.handle_request(message, payload)
File "C:\Python35\lib\site-packages\aiohttp\web.py", line 88, in handle_request
resp = yield from handler(request)
File "C:\Python35\lib\site-packages\aiohttp_session__init__.py", line 129, in middleware
response = yield from handler(request)
File "C:/MyRepositories/zfzd_interface\Middlewares.py", line 34, in middleware_handler
response = await handler(request)
File "C:/MyRepositories/zfzd_interface/HttpServer.py", line 30, in LoginSession
resp = await cli.LoginSession(request, redisconn=redisconn)
File "C:/MyRepositories/zfzd_interface\HttpClient.py", line 66, in LoginSession
jar = aiohttp.CookieJar(unsafe=True)
File "C:\Python35\lib\site-packages\aiohttp\cookiejar.py", line 37, in init
self._next_expiration = ceil(loop.time())
AttributeError: 'NoneType' object has no attribute 'time'

I use environment with python 3.5.2 on Windows Server2008 R2.
In aiohttp 0.22.5 is normal,When I upgraded to 1.0.1 displays the above error

@asvetlov
Copy link
Member

Fixed. Thanks for bug report.

@lock
Copy link

lock bot commented Oct 29, 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 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 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