AmazonMonitor icon indicating copy to clipboard operation
AmazonMonitor copied to clipboard

[BUG] UnhandledPromiseRejection

Open risner opened this issue 8 months ago • 6 comments

Describe the issue:

Start the bot, wait a few seconds, get an error "UnhandledPromiseRejection".

Running on a server.

I don't know if it is relevant, but the npm warned when installing: npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported

Paste the contents of your config.json, excluding the token, here:

{
  "prefix":"!",
  "token":"works-changed-for-this-issue",
  "minutes_per_check":3,
  "seconds_between_check": 5,
  "url_params":{},
  "guild_item_limit":5,
  "cache_limit": 10,
  "required_perms":["permission_1", "permission_2"],
  "tld":"com",
  "auto_cart_link":true,
  "debug_enabled":true,
  "custom_chromium_exec":"/usr/local/bin/chrome"
}

Provide console output with debug mode enabled:

[MESSAGE]  Bot is ready!
UnhandledPromiseRejection: 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(). The promise rejected with the reason "#<ErrorEvent>".

risner avatar Jun 06 '24 12:06 risner