When connected to the Firehose with the Typescript SDK sometimes an exception is thrown.
To Reproduce
Steps to reproduce the behavior:
Connect to the Firehose
Wait
Error happens after seconds or hours. I don't know what triggers it:
error: RangeError: Could not decode varint
at Object.read3 [as decode] (/project_folder/node_modules/@skyware/firehose/node_modules/@atproto/repo/dist/index.js:13360:17)
at readVarint (/project_folder/node_modules/@skyware/firehose/node_modules/@atproto/repo/dist/index.js:25090:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async readHeader (/project_folder/node_modules/@skyware/firehose/node_modules/@atproto/repo/dist/index.js:25095:19)
at async decodeIterator (/project_folder/node_modules/@skyware/firehose/node_modules/@atproto/repo/dist/index.js:25408:40)
**Expected behavior**
Messages from the Firehose are parsed without errors by the SDK.
**Details**
- Operating system: Windows 11
- Node version: v21.6.1
**Additional context**
I'm trying to create a bot.
Describe the bug
When connected to the Firehose with the Typescript SDK sometimes an exception is thrown.
To Reproduce
Steps to reproduce the behavior: