Skip to content

[BUG] UnhandledPromiseRejection #112

@risner

Description

@risner

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 inflight@1.0.6: 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 rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@7.2.3: 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>".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions