get-got / discord-downloader-go

A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration. Can be used as a genuine Discord Bot or user account / self-bot
MIT License
276 stars 31 forks source link

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

Open Cronosus opened 4 months ago

Cronosus commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

yep, thats my case too

dot-Justin commented 3 months ago

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 commented 3 months ago

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.