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

Aiohttp v3 + api-hour #13

Open
alskrypnik opened this issue Mar 21, 2018 · 2 comments
Open

Aiohttp v3 + api-hour #13

alskrypnik opened this issue Mar 21, 2018 · 2 comments

Comments

@alskrypnik
Copy link

Spent 2 days trying to run api_hour with project updated to aiohttp==3.0.9

I'm running it with command:
/usr/local/bin/api_hour --chdir /path/to/project server:Container -b 127.0.0.7:8000 --log-level=DEBUG

And it starts great but when I try to connect I have: "no data received" or "connection reset by peer" message. No logs in terminal, no errors. It seems like api-hour even can't handle request.

The same config works great with aiohttp==2.2.5 but now fails.

@iCart
Copy link
Contributor

iCart commented Mar 21, 2018

Hi,
I had the same issue very recently, to fix it remove keep_alive=self.worker.cfg.keepalive from your __init__.py.

As i understand it, the keep_alive argument has been deprecated in aiohttp v3, which raise an exception which is ignored for some reason unless you activate a very specific debug flag somewhere.

@alskrypnik
Copy link
Author

Yep! That works! Thank you very much.

But it would be great if the developers update help texts and website where All-in-one Python script can be found

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

2 participants