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

Failure: Invalid wire type #200

Open
j-r79 opened this issue Feb 21, 2024 · 4 comments
Open

Failure: Invalid wire type #200

j-r79 opened this issue Feb 21, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@j-r79
Copy link

j-r79 commented Feb 21, 2024

I use some devices with esphome in iobroker which have all the same problem. For many days everything works without any problem, but then this message pops up every second in the log:

ESPHome client 192.168.100.145 Error: Failure: Invalid wire type: %s (at position %s)

I can fix the problem by removing the device in the instance settings (ip & delete device) and adding it again. Then it will work again for some days...

Versions:

  • Adapter version: 0.5.0-beta.10
  • JS-Controller version: 5.0.17
  • Node version: v18.19.0
  • Operating system: raspibian 6.1.0-rpi7-rpi-v8 Bump eslint from 7.19.0 to 7.20.0 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
@j-r79 j-r79 added the bug Something isn't working label Feb 21, 2024
@j-r79
Copy link
Author

j-r79 commented Mar 1, 2024

If i press the update-button when the error is active, the adapter crashes:

`esphome.0
2024-03-01 07:45:10.553 error sendMessage timeout waiting for HelloResponse
esphome.0
2024-03-01 07:45:10.553 error Error: sendMessage timeout waiting for HelloResponse at Timeout. (/opt/iobroker/node_modules/@2colors/esphome-native-api/lib/connection.js:201:20) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)
esphome.0
2024-03-01 07:45:10.552 error unhandled promise rejection: sendMessage timeout waiting for HelloResponse
esphome.0
2024-03-01 07:45:10.551 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().

esphome.0
2024-03-01 07:45:05.572 error ESPHome client 192.168.100.145 Error: Failure: Invalid wire type: %s (at position %s)`

After the crash the esphome-device is working again:

ESPHome client 192.168.100.145 connected

@DutchmanNL
Copy link
Contributor

is this still happening and reproducible ? the error itself I cannot solve at its an dependency but the adapter crash should defiantly NOT happen and I have to troubleshoot that + implement proper error handling. but need someone who can test and reproduce :)

@j-r79
Copy link
Author

j-r79 commented May 17, 2024

Yes, it still happens. I can not force it but i wrote a script which reads the iobroker log an restarts the instance if the error is written into the log.

@DutchmanNL
Copy link
Contributor

Yes, it still happens. I can not force it but i wrote a script which reads the iobroker log an restarts the instance if the error is written into the log.

would it be possible to activate debug logging to track & trace it until the crash ? I would need the last 20 log entries before the crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants