Home Assistant container not working

I have a docker server running on Debian buster, where I host all my containers. I tried installing the Home Assistant container as per the instructions, by running this command.

docker run --init -d \
 --name="homeassistant" \
 -h homeassistant \
 -e "TZ=Europe/Nicosia" \
 -v homeassistant:/config \
 --net=host \
 homeassistant/home-assistant:stable

Home assistant is not accessible using the browser, and this is what I get in the container logs.

2019-10-10 17:27:15 INFO (SyncWorker_37) [homeassistant.loader] Loaded homekit_controller from homeassistant.components.homekit_controller,
2019-10-10 17:27:15 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 2.79s,
2019-10-10 17:27:15 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-10-10 17:27:15 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-10-10 17:28:00 ERROR (MainThread) [aiohttp.server] Error handling request,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received,
    messages, upgraded, tail = self._request_parser.feed_data(data),
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data,
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method,
2019-10-10 17:28:01 ERROR (MainThread) [aiohttp.server] Error handling request,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received,
    messages, upgraded, tail = self._request_parser.feed_data(data),
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data,
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method,
2019-10-10 17:28:02 ERROR (MainThread) [aiohttp.server] Error handling request,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received,
    messages, upgraded, tail = self._request_parser.feed_data(data),
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data,
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method,

Why is this not working?