AmazonMonitor icon indicating copy to clipboard operation
AmazonMonitor copied to clipboard

[BUG] UnhandledPromiseRejection

Open risner opened this issue 1 year 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

Has it worked before ever (and is there an existing watchlist? If so, try removing it)? What sort of system is it running on? What NodeJS version are you on (I recco trying on >= 20)? Do you really need to use the custom Chromium exec? Only use that if the bot is giving you issues about not being able to find it automatically

SpikeHD avatar Jun 06 '24 19:06 SpikeHD

Closing due to no response, and because I cannot reproduce

SpikeHD avatar Jun 14 '24 01:06 SpikeHD

Apologies for no response, I didn't see/notice your reply.

It has never worked. There is no watchlist. It's using node 20. It's a FreeBSD system that I use other node projects.

risner avatar Jun 14 '24 01:06 risner

I could give you a login on a system if needed?

risner avatar Jun 14 '24 10:06 risner

Need anything from me?

risner avatar Jun 21 '24 22:06 risner

I'll let you know if I do, this project isn't super high prio in my life these days, and I'd probably have to setup a FreeBSD VM/container environment just to test if that is relevant or not, so it may be a little while :P

SpikeHD avatar Jun 21 '24 23:06 SpikeHD