Can large files cause abortion errors?

My bot sends a .png file across many servers. Most of the come out with abortion errors, meaning the API request timed out. The .png file weighs 370KB and when I switch it to a smaller one that only weighs 50KB the code works perfectly
5 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Nightro-Fx
Nightro-Fx15mo ago
Oh are you trying to send that png to a specific server?
DanielBA
DanielBAOP15mo ago
No. To all servers
kernelxion
kernelxion15mo ago
It can be about Discord Rate Limits try to catch errors.
Syjalo
Syjalo15mo ago
You were already answered. Yes. Do not spam the API.

Did you find this page helpful?