DJTOMATO / glas-cogs

dumb cogs for Red-DiscordBot
MIT License
1 stars 2 forks source link

[PfpImgen] `Cage` erroring with `DiscordServerError` 520 in `cage` #6

Open cool-aid-man opened 1 month ago

cool-aid-man commented 1 month ago

Hey glas, 👋

Got a BIG traceback for you. Basically, it errored with this HUGE text wall on one of the sub-command from the cog: cage . I will upload the whole traceback for you to understand even more. (17 KB)

From what I see, it's most probably because Cloudflare was having some issues connecting to the discord (transient issue) so a retry_later logic would help mitigate the error. file.txt Gist Link: - https://gist.github.com/cool-aid-man/e7fdd91224540a3258aa01600b3732a2

Thanks

DJTOMATO commented 2 weeks ago

Hey @cool-aid-man sorry for replying this late. I've looked into this and seems it was a particular case I can't replicate, but yeah I've tried adding a logic in case it fails at least for the cage command as a test, if you have connection issues again in the future and can see if it works, we can apply it to other commands and leave it permanently.

https://github.com/DJTOMATO/glas-cogs/commit/fc9725b7fa8ef8fc9a9a952244271bc483470501