500 internal server error (Windows)

I just got this error.

I’ve got no clue how it happened, I even did a image restore to the first of this month when I wasn’t getting such error. It didn’t help. I tried to uninstall python and home assistant, both didn’t help. Has anyone else had this problem in Windows and been able to over come it? Thanks guys

To elaborate a bit more, every time I try go to HA in the browser this is the error that appears server side and in the logs:

Traceback (most recent call last):
File "C:\Users\Media\AppDat2017-11-11 16:45:27 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “C:\Users\Media\AppData\Local\Programs\Python\Python36-32\lib\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 “C:\Users\Media\AppData\Local\Programs\Python\Python36-32\lib\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’
2017-11-11 16:45:28 ERROR (MainThread) [aiohttp.server] Error handling request

Same just happened here on Ubuntu. 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

1 Like

Didn’t seem to solve my problem unfortunately, thanks though.

Edit: It did in fact solve my problem!
I just have a bat file and in there I have “pip3 install --upgrade homeassistant” so every time my PC restarts it will auto update if need be.

That means though that every time I update from now there will be this problem, any idea on how to get around it?

This got me too. Trying to downgrade Yarl

Downgrade and reboot I’m back in business, phew! On Hassbian.