Tatatofly / Discordbot-Shiro

DiscordBot WiP with JavaScript powered by Node.JS
https://tatato.fi
MIT License
1 stars 2 forks source link

BUG: rule34 doesn't return anything if random file is too large #21

Closed Tatatofly closed 3 years ago

Tatatofly commented 3 years ago

rule34 doesn't return anything if random file is too large.

(node:28453) UnhandledPromiseRejectionWarning: DiscordAPIError: Request entity too large at RequestHandler.execute (/home/7/tatatofly/github/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:170:25) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:28453) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 885)

Tatatofly commented 3 years ago

Quick fix for the bug. Will refactor r34 command someday.