Promise error sometimes on load - sapphire.js framework
Hey,
Whenever I am starting my bot within a docker environment, I am getting this error sometimes;
2024-04-22 12:04:51 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting global application commands, now at 0 commands2024-04-22 12:04:52 - INFO - ApplicationCommandRegistries(BulkOverwrite) Successfully overwrote global application commands. The application now has 0 global commands2024-04-22 12:04:52 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting guild application commands for guild xxxxx, now at 14 commandsnode:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^[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 "#<Object>".] { code: 'ERR_UNHANDLED_REJECTION'}
2024-04-22 12:04:51 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting global application commands, now at 0 commands2024-04-22 12:04:52 - INFO - ApplicationCommandRegistries(BulkOverwrite) Successfully overwrote global application commands. The application now has 0 global commands2024-04-22 12:04:52 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting guild application commands for guild xxxxx, now at 14 commandsnode:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^[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 "#<Object>".] { code: 'ERR_UNHANDLED_REJECTION'}
However it only occurs every now and again which exits then if I restart it works fine; any ideas?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
S-IaF
Sapphire - Imagine a Framework
Sapphire is a next-gen object-oriented Discord.js bot framework.