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

Crashes caused by RangeError: Could not decode varint #677

Open
vectronic opened this issue Nov 11, 2024 · 0 comments
Open

Crashes caused by RangeError: Could not decode varint #677

vectronic opened this issue Nov 11, 2024 · 0 comments

Comments

@vectronic
Copy link

Describe the bug

I am getting regular (roughly 1-2 occurrences per day) errors in the plugin causing Homebridge to exit and be restarted.

I have not changed anything with Nest or the plugin (except upgrades) for a long time and this has started occurring about 3 weeks ago...

To Reproduce
Steps to reproduce the behavior:

  1. Run homebridge with homebridge-nest plugin with the following config and then wait...
       {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "xxx",
                "cookies": "xxx"
            },
            "options": [
                "HomeAway.Disable",
                "Protect.MotionSensor.Disable"
            ],
            "platform": "Nest"
        },

Expected behavior
Should not crash.

Include with your bug report this version info:

# node --version
v20.11.1
# homebridge --version
1.8.5

Make sure you have the latest LTS from https://nodejs.org
and the latest packages: npm upgrade -g homebridge homebridge-nest

Running plugin version: v4.6.9

Also include debug log output from startup through seeing the issue:
DEBUG=* homebridge -D

Debug startup logs attached. Unfortunately I can't reproduce on demand the issue. However I have error log for when it occurs:

0|homebrid | RangeError: Could not decode varint
0|homebrid |     at Object.read [as decode] (/usr/local/lib/node_modules/homebridge-nest/node_modules/varint/decode.js:17:13)
0|homebrid |     at ClientHttp2Stream.<anonymous> (/usr/local/lib/node_modules/homebridge-nest/lib/nest-connection.js:648:44)
0|homebrid |     at ClientHttp2Stream.emit (node:events:518:28)
0|homebrid |     at addChunk (node:internal/streams/readable:559:12)
0|homebrid |     at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
0|homebrid |     at ClientHttp2Stream.Readable.push (node:internal/streams/readable:390:5)
0|homebrid |     at Http2Stream.onStreamRead (node:internal/stream_base_commons:190:23)
0|homebrid | [11/10/2024, 7:53:27 PM] RangeError: Could not decode varint
0|homebrid |     at Object.read [as decode] (/usr/local/lib/node_modules/homebridge-nest/node_modules/varint/decode.js:17:13)
0|homebrid |     at ClientHttp2Stream.<anonymous> (/usr/local/lib/node_modules/homebridge-nest/lib/nest-connection.js:648:44)
0|homebrid |     at ClientHttp2Stream.emit (node:events:518:28)
0|homebrid |     at addChunk (node:internal/streams/readable:559:12)
0|homebrid |     at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
0|homebrid |     at ClientHttp2Stream.Readable.push (node:internal/streams/readable:390:5)
0|homebrid |     at Http2Stream.onStreamRead (node:internal/stream_base_commons:190:23)

homebridge-startup-debug.log

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

No branches or pull requests

1 participant