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

"RangeError: Could not decode varint" in repo package #2484

Open
aalku opened this issue May 13, 2024 · 1 comment
Open

"RangeError: Could not decode varint" in repo package #2484

aalku opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aalku
Copy link

aalku commented May 13, 2024

Describe the bug

When connected to the Firehose with the Typescript SDK sometimes an exception is thrown.

To Reproduce

Steps to reproduce the behavior:

  1. Connect to the Firehose
  2. Wait
  3. 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.

@aalku aalku added the bug Something isn't working label May 13, 2024
@mary-ext
Copy link
Contributor

They're coming from Bridgy Fed, re: snarfed/bridgy-fed#1016

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