ZeldaFan0225/AI_Horde_Discord

Hard crash when using /transferkudos

Closed this issue · 0 comments

db0 commented

Tried to send residentchief their bounty. Second time worked, but not sure what caused the 404 below, some discord bug? Optimally should return an error to the user, instead of a hard crash

Jan 31 14:57:00  npm[567126]: DiscordAPIError[10062]: Unknown interaction
Jan 31 14:57:00  npm[567126]:     at SequentialHandler.runRequest (/home/discordbot/Stable_Horde_Discord/node_modules/@discordjs/rest/dist/index.js:667:15)
Jan 31 14:57:00  npm[567126]:     at runMicrotasks (<anonymous>)
Jan 31 14:57:00  npm[567126]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
Jan 31 14:57:00  npm[567126]:     at async SequentialHandler.queueRequest (/home/discordbot/Stable_Horde_Discord/node_modules/@discordjs/rest/dist/index.js:464:14)
Jan 31 14:57:00  npm[567126]:     at async REST.request (/home/discordbot/Stable_Horde_Discord/node_modules/@discordjs/rest/dist/index.js:910:22)
Jan 31 14:57:00  npm[567126]:     at async ChatInputCommandInteraction.reply (/home/discordbot/Stable_Horde_Discord/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5) {
Jan 31 14:57:00  npm[567126]:   requestBody: {
Jan 31 14:57:00  npm[567126]:     files: [],
Jan 31 14:57:00  npm[567126]:     json: {
Jan 31 14:57:00  npm[567126]:       type: 4,
Jan 31 14:57:00  npm[567126]:       data: {
Jan 31 14:57:00  npm[567126]:         content: 'Transferred 200000 kudos to residentchiefnz#3966',
Jan 31 14:57:00  npm[567126]:         tts: false,
Jan 31 14:57:00  npm[567126]:         nonce: undefined,
Jan 31 14:57:00  npm[567126]:         embeds: undefined,
Jan 31 14:57:00  npm[567126]:         components: undefined,
Jan 31 14:57:00  npm[567126]:         username: undefined,
Jan 31 14:57:00  npm[567126]:         avatar_url: undefined,
Jan 31 14:57:00  npm[567126]:         allowed_mentions: undefined,
Jan 31 14:57:00  npm[567126]:         flags: undefined,
Jan 31 14:57:00  npm[567126]:         message_reference: undefined,
Jan 31 14:57:00  npm[567126]:         attachments: undefined,
Jan 31 14:57:00  npm[567126]:         sticker_ids: undefined,
Jan 31 14:57:00  npm[567126]:         thread_name: undefined
Jan 31 14:57:00  npm[567126]:       }
Jan 31 14:57:00  npm[567126]:     }
Jan 31 14:57:00  npm[567126]:   },
Jan 31 14:57:00  npm[567126]:   rawError: { message: 'Unknown interaction', code: 10062 },
Jan 31 14:57:00  npm[567126]:   code: 10062,
Jan 31 14:57:00  npm[567126]:   status: 404,
Jan 31 14:57:00  npm[567126]:   method: 'POST',
Jan 31 14:57:00  npm[567126]:   url: 'https://discord.com/api/v10/interactions/1069979607165587536/aW50ZXJhY3Rpb246MTA2OTk3OTYwNzE2NTU4NzUzNjpEbmx6MFZVTVJwMk83V2owcFhTMnBNQW1RWkU4UjVOQ0J3eDR3NlZQVzVXeVB5WmJDeHczU0t1SGJsMXJnRE9SS1hLUUNqaWhPUG12YVRySUpDNXAzQzdYTFQzVENZMThlc1oxTGlLZkgxU1F5Y0RPNnZXWnRIWFRFYW1TUlFETA/callback'
Jan 31 14:57:00  npm[567126]: }
Jan 31 14:57:01  systemd[4026426]: discord_bot.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 14:57:01  systemd[4026426]: discord_bot.service: Failed with result 'exit-code'.