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

Finding this error constntly in the Log - Error handling Request #124653

Closed
Dzoker2 opened this issue Aug 26, 2024 · 28 comments · Fixed by #131744
Closed

Finding this error constntly in the Log - Error handling Request #124653

Dzoker2 opened this issue Aug 26, 2024 · 28 comments · Fixed by #131744

Comments

@Dzoker2
Copy link

Dzoker2 commented Aug 26, 2024

The problem

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
First occurred: 13:49:05 (2 occurrences)
Last logged: 14:13:27

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:

b'\x16\x03\x01\x02\x96\x01'
  ^

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

unknown

Link to integration documentation on our website

No response

Diagnostics information

Sorry, I don't have any details

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@Dzoker2 Dzoker2 changed the title Finding this error constntly in the Log - Error handeling Request Finding this error constntly in the Log - Error handling Request Aug 26, 2024
@WebSpider
Copy link
Contributor

@Dzoker2 this looks like someone is attempting https, when the other side is expecting normal http. Is your homeassistant reachable from outside?

@Dzoker2
Copy link
Author

Dzoker2 commented Aug 26, 2024

@WebSpider

@Dzoker2 this looks like someone is attempting https, when the other side is expecting normal http. Is your homeassistant reachable from outside?

It is not accessible from outside... I do have an add-on HTTPS Everywhere - https://www.eff.org/https-everywhere in Firefox... could that be the issue? I access my HA via Firefox.

ty

@home-assistant home-assistant deleted a comment from Dzoker2 Aug 27, 2024
@home-assistant home-assistant deleted a comment from tempus2016 Aug 27, 2024
@home-assistant home-assistant deleted a comment from Dzoker2 Aug 27, 2024
@joostlek
Copy link
Member

It will most likely be your browser attempting to access the resource with https while it doesn't have the setting to handle SSL

@amigasger
Copy link

I have same version and same problem, when trying to login through a nginx proxy manger "reverse proxy" running on the same docker-installation.

It's driving me nuts, because I can't get remote functionality to work at all (only if I login through OpenVPN against the http-address). In Chrome I only get to the part where the "Blue House" shows up - and end up getting "Unable to connect to Home Assistant"... I have a theory, that it could be due to docker running as host - and the docker-nginx (reverse proxy) can't access the hameassistant docker-machine for some lame reason..

This is from my log:

Logger: aiohttp.server
Kilde: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
Første forekomst: 08.41.13 (44 forekomster)
Senest logget: 11.08.50

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:

b'\x16\x03\x01\x07\x1c\x01'

It would be great, if a developer could extend the functionality in the log, to say which endpoint the installation is trying to reach, when the exception occur.

@Dzoker2
Copy link
Author

Dzoker2 commented Aug 30, 2024

@joostlek

It will most likely be your browser attempting to access the resource with https while it doesn't have the setting to handle SSL

I have deleted the extension from Firefox so it is not forcing https anymore but I still get that error in the logs. anything else I could do to troubleshoot this?

ty

@MDoom81
Copy link

MDoom81 commented Aug 31, 2024

Same issue here. I am very new to all this but willing to help. I currently have a very basic setup using a HA green. Someone mentioned http vs https above and I am using Duck DNS, so could that be the issue? If so, I really dont know enough to try and resolve that while still being able to access my HAOS from outside my network.

@Dzoker2
Copy link
Author

Dzoker2 commented Sep 3, 2024

Hi All, It looks like this error stopped after I removed the https://www.eff.org/https-everywhere extension from Firefox. will keep an eye on it.

ty

@Dzoker2 Dzoker2 closed this as completed Sep 3, 2024
@Dzoker2 Dzoker2 reopened this Sep 3, 2024
@Dzoker2
Copy link
Author

Dzoker2 commented Sep 3, 2024

I spoke too soon, it just happened again:

`Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
First occurred: 21:57:44 (1 occurrences)
Last logged: 21:57:44

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:

b'\x16\x03\x01\x02\x96\x01'
  ^`

@Destroyer061090
Copy link

even with latest HA 2024.9.0

Registratore: aiohttp.server
Fonte: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
Prima occorrenza: 14:29:26 (2 occorrenze)
Ultima registrazione: 14:29:34

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01'
      ^

@Dzoker2
Copy link
Author

Dzoker2 commented Sep 7, 2024

Can anyone help with this issue? Same with latest 2024.9.1.

TY

@sosso-b
Copy link

sosso-b commented Sep 18, 2024

Same issue for me i did not arrive to solve it

@niighthawk
Copy link

niighthawk commented Sep 22, 2024

same here 2024.9.2

Enregistreur: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
S'est produit pour la première fois: 20 septembre 2024 à 08:33:02 (6 occurrences)
Dernier enregistrement: 04:09:46

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01'
      ^

@Dzoker2
Copy link
Author

Dzoker2 commented Sep 27, 2024

Same issue in 2024.9.3

@H3rian
Copy link

H3rian commented Oct 8, 2024

Same for me

@ENWOD
Copy link

ENWOD commented Oct 10, 2024

Same error here;

I'm running Caddy as a reverse proxy and wondering if it could be related to this.

File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x01g\x01'
      ^

@jontofront
Copy link

Same for me

@Dzoker2
Copy link
Author

Dzoker2 commented Oct 15, 2024

Same issue in 2024.10.2

@herrxyz
Copy link

herrxyz commented Oct 18, 2024

same for current docker installation with image: ghcr.io/home-assistant/home-assistant:stable

@DanoBoca
Copy link

same here 2024.10.3 I have no idea where Python3.12 is coming from. I have Python3.11 installed....

@Dzoker2
Copy link
Author

Dzoker2 commented Oct 25, 2024

Same issue in 2024.10.3

Will anyone take a look at this issue?!?

@Dzoker2
Copy link
Author

Dzoker2 commented Oct 28, 2024

Same issue in 2024.10.4

@herrxyz
Copy link

herrxyz commented Oct 28, 2024

something changed, my docker installation started today after pulling new image
version is now 2024.10.4

@bccostin
Copy link

bccostin commented Nov 4, 2024

Same issue on 2024.10.4 on bare metal behind a caddy reverse proxy.

@Dzoker2
Copy link
Author

Dzoker2 commented Nov 8, 2024

Hi, same issue on 2024.11.0

Thank you

@sosso-b
Copy link

sosso-b commented Nov 8, 2024

Hi I confirm me too same issue 2024.11.0

@Dzoker2
Copy link
Author

Dzoker2 commented Nov 16, 2024

Same issue on 2024.11.2

@andyfrei
Copy link

Same issue with 2024.11.3

@galactic-president
Copy link

Same here

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 377, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
  Data after `Connection: close`:

    b'\x00B'

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

Successfully merging a pull request may close this issue.

17 participants