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

Error doing job: Fatal error: protocol.data_received() call failed. (None) #1044

Open
saschachina opened this issue Feb 2, 2025 · 1 comment · May be fixed by #1055
Open

Error doing job: Fatal error: protocol.data_received() call failed. (None) #1044

saschachina opened this issue Feb 2, 2025 · 1 comment · May be fixed by #1055

Comments

@saschachina
Copy link

Sometimes I get this error, unfortunately I have not yet been able to find out what causes it.

Logger: homeassistant
Quelle: /usr/src/homeassistant/homeassistant/runner.py:112
Erstmals aufgetreten: 07:28:57 (1 Vorkommnisse)
Zuletzt protokolliert: 07:28:57

Error doing job: Fatal error: protocol.data_received() call failed. (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1019, in _read_ready__data_received
    self._protocol.data_received(data)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "aioesphomeapi/_frame_helper/noise.py", line 205, in aioesphomeapi._frame_helper.noise.APINoiseFrameHelper.data_received
  File "aioesphomeapi/_frame_helper/noise.py", line 355, in aioesphomeapi._frame_helper.noise.APINoiseFrameHelper._handle_frame
  File "aioesphomeapi/_frame_helper/noise.py", line 108, in aioesphomeapi._frame_helper.noise.DecryptCipher.decrypt
cryptography.exceptions.InvalidTag

In addition to this error, I get another one:

Logger: aioesphomeapi.connection
Quelle: runner.py:154
Erstmals aufgetreten: 07:28:57 (1 Vorkommnisse)
Zuletzt protokolliert: 07:28:57

everything-presence-lite-4f09d0 @ 192.168.1.XXX: Connection error occurred: everything-presence-lite-4f09d0 @ 192.168.1.XXX: Invalid encryption key: received_name=everything-presence-lite-4f09d0

ESPHome Device Builder Version: 2024.12.4
Home Assistant Core: 2025.1.4
Home Assistant Operating System: 14.2
Everything Presence Lite: Firmware: 1.2.2 (ESPHome 2024.12.4)

It would be great if someone had an idea what causes this error.

Many thanks in advance

@bdraco
Copy link
Member

bdraco commented Feb 2, 2025

Invalid encryption key indicates the noise_psk is wrong

bdraco added a commit that referenced this issue Feb 3, 2025
We should not see an encryption error after
unless the data is corrupted on the wire,
apparently this can happen

fixes #1044
@bdraco bdraco linked a pull request Feb 3, 2025 that will close this issue
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.

2 participants