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

Creating new sessions fails on node.js v22.7.0 with RangeError #261

Closed
memendes123 opened this issue Sep 3, 2024 · 4 comments
Closed

Creating new sessions fails on node.js v22.7.0 with RangeError #261

memendes123 opened this issue Sep 3, 2024 · 4 comments
Labels
Bug Something isn't working and the problem is in the code Dependencies Pull requests that update a dependency file

Comments

@memendes123
Copy link

[2024-09-03 17:16:12] What's new: Fixed a lot of proxy related bugs, added a commentsIpCooldownPenalty setting, added events support to REST API plugin and made a few more QoL changes. Read the full changelog on GitHub.

[2024-09-03 17:16:12 | INFO] Logging in 478 account(s), where 0 qualify for fast login... Estimated wait time: 59.71 minutes
[2024-09-03 17:16:13 | WARN] [Main] RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds while trying to get a new session for '03587688' using login credentials. Retrying login in 5 seconds...

[ERROR] [Main] Couldn't log in '03587ffs688' after 2 attempt(s). RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds (undefined)

[ERROR] Aborting because the first bot account always needs to be logged in!
Please correct what caused the error and try again.

@memendes123 memendes123 added the Bug Something isn't working and the problem is in the code label Sep 3, 2024
@3urobeat
Copy link
Owner

3urobeat commented Sep 5, 2024

Hey, thanks for opening an issue!

Interesting error you've got there. I've done a quick look into my code and it seems like this error is caused inside the steam-session library, which was not written by me.

I will take a look at that library later, maybe I can narrow the issue further down.
I myself haven't encountered this issue before though, so it might be hard to replicate.

@3urobeat
Copy link
Owner

3urobeat commented Sep 5, 2024

Which version of node.js are you using?

If you open output.txt the bot logs which version is used directly upon starting it, it's one of the first messages.

Apparently people are reporting this exact issue on node.js v22.7.0 in the protobufjs library, which steam-session uses.
Should you use v22.7.0, please downgrade and try again.
The node.js LTS (Long Term Support) version makes more sense for you anyway if you only want to run programs instead of developing as it is more stable.

@memendes123
Copy link
Author

memendes123 commented Sep 5, 2024 via email

@3urobeat 3urobeat changed the title cant open bot every time having this error Creating new sessions fails on node.js v22.7.0 with RangeError Sep 5, 2024
@3urobeat
Copy link
Owner

3urobeat commented Sep 5, 2024

That's good to hear. Going to pin this issue for a while until this is patched so others can see it.

@3urobeat 3urobeat added the Dependencies Pull requests that update a dependency file label Sep 5, 2024
@3urobeat 3urobeat closed this as completed Sep 5, 2024
@3urobeat 3urobeat pinned this issue Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working and the problem is in the code Dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants