API-Hour
API-Hour copied to clipboard
Aiohttp v3 + api-hour
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.
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.
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