Snekfetch error

javascript

#1

Hey so I have a pretty advanced bot on a project called: gladenation-bot

and for some reason every time i refresh i get this error:

(node:16804) UnhandledPromiseRejectionWarning: DiscordAPIError: 404: Not Found

1:36 PM

at item.request.gen.end (/rbd/pnpm-volume/ea312467-098c-43a9-991b-9978d5747180/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:79:15)

1:36 PM

at then (/rbd/pnpm-volume/ea312467-098c-43a9-991b-9978d5747180/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)

1:36 PM

at <anonymous>

1:36 PM

at process._tickCallback (internal/process/next_tick.js:189:7)

1:36 PM

(node:16804) 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(). (rejection id: 2)

1:36 PM

(node:16804) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

If anyone knows how to fix this that would be great!


#2

Can you try using a new bot token? And see if this changes anything?


#3

Sure I’ll give that a shot


#4

No that did not work