ERROR (MainThread) [aiohttp.server] SOLVED

I ran an upgrade to all in one install of a Pi3, rebooted and waited - when I go to the HA front end all I get is 500 Internal Server Error - server got into trouble.

my log file contains -

2017-11-11 15:04:09 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/aiohttp/web_protocol.py”, line 278, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp/_http_parser.pyx”, line 274, in aiohttp._http_parser.HttpParser.feed_data (aiohttp/_http_parser.c:4364)
File “aiohttp/_http_parser.pyx”, line 334, in aiohttp._http_parser.cb_on_url (aiohttp/_http_parser.c:5381)
File “aiohttp/_http_parser.pyx”, line 544, in aiohttp._http_parser._parse_url (aiohttp/_http_parser.c:8777)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/aiohttp/http_writer.py”, line 317, in init
path = yarl.quote(path, safe=’@:’, protected=’/’, strict=False)
File “yarl/_quoting.pyx”, line 38, in yarl._quoting._quote
TypeError: _quote() got an unexpected keyword argument ‘strict’

I’ve tried moving back to a previous version and re run the upgrade but with no joy. Can anyone point me in the right direction please as at the moment I have a dead HA!

It appears that it is because the yarl package was updated to 0.14.0 (from 0.13.0). Downgrade it using pip like so:

pip install --upgrade yarl==0.13.0

Afterwards restart HA and it works again!

https://github.com/home-assistant/home-assistant/issues/10524

2 Likes

That’s fixed it. Thanks I thought I’d a full rebuild coming!

Thanks again for the quick response.

Andy