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

On load backup the bot crash #15

Open
WithqutOfficial opened this issue Jan 8, 2022 · 1 comment
Open

On load backup the bot crash #15

WithqutOfficial opened this issue Jan 8, 2022 · 1 comment

Comments

@WithqutOfficial
Copy link

WithqutOfficial commented Jan 8, 2022

Traceback:
/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:154
throw new DiscordAPIError(request.path, data, request.method, res.status);
^

DiscordAPIError: Invalid Form Body
image: File cannot be larger than 256.0 kb.
at RequestHandler.execute (/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:39:14) {
method: 'post',
path: '/guilds/929385503273406464/emojis',
code: 50035,
httpStatus: 400
}

How to bypass this limit?

@wanomaniac
Copy link

The file/ server file is bigger then 256.0 kb which means discord cant upload the json files and use it in order to put everything. i dont know if their is a limit but i suggest if you make your backups more smaller

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

2 participants