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

2.5.3 - rate limit unmarshal error, invalid character 'e' looking for beginning of value #144

Open
Cronosus opened this issue Jun 4, 2024 · 7 comments

Comments

@Cronosus
Copy link

Cronosus commented Jun 4, 2024

hello
for some reason dgo spams this in console
2024/06/04 15:37:27 logging.go:63: [DG0] restapi.go:281:RequestWithLockedBucket() rate limit unmarshal error, invalid character 'e' looking for beginning of value
and after a while it crash

any idea what may cause it?
thanks in advance

ad. crash may not be related

@get-got
Copy link
Owner

get-got commented Jun 5, 2024

A frequent user of this bot in our discord server is having the same issue, we're trying to pinpoint it. It seems specific to selfbots / user accounts.

It's likely crashing due to experiencing the same error when intermittently checking the discord connection, prompting it to attempt to reconnect.

@Cronosus
Copy link
Author

Cronosus commented Jun 5, 2024

yep, thats my case too

@dot-Justin
Copy link

Same here
Logs:

2024/06/12 11:56:50 logging.go:63: [DG0] restapi.go:281:RequestWithLockedBucket() rate limit unmarshal error, invalid character 'e' looking for beginning of value
(repeats many times)

Then what @Cronosus reported with the crash.

@Reaper176
Copy link

I have a similar issue, Might be the same problem or related.

error message in discord

Encountered an error requesting messages for ####################: invalide character "e" looking for beginning of value.

This is matched in the shell with an error

could not read response from "url": context deadline exceeded (Client.Timout or context cancellation while reading body)

after a while it will crash.

@get-got get-got pinned this issue Jul 21, 2024
@get-got get-got changed the title marschal error and crash (2.5.3) 2.5.3 - rate limit unmarshal error, invalid character 'e' looking for beginning of value Jul 21, 2024
@Fishpat02
Copy link

The issue seems to be at least in part that the bot is hitting discord API limits, hence the error message. I've had some success tuning my process limit and batch number settings, but it's still fairly inconsistent depending on how many things it does or doesn't download, resulting in the error message above flooding the logs.

Just throwing this out there for anyone looking for somewhat of a fix until something is properly rolled out. I would attempt to implement some fixes, but my knowledge of go is very lacking, and even more so for the libraries being used.

See https://discord.com/developers/docs/topics/rate-limits#exceeding-a-rate-limit

@shadybrady101
Copy link

shadybrady101 commented Dec 17, 2024

I assume this is known but this issue only happens with email login not token, Fixed it for me at least.

@Fishpat02
Copy link

Yeah, only seems to happen for user bot for me.

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

6 participants