R
Railway•6mo ago
Guillo

Launching error

Hi! I'm getting this error in the deployment and I have no idea what it is. npm ERR! path /app npm ERR! command failed npm ERR! signal SIGTERM npm ERR! command sh -c -- npm run build && node build/index.js npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-12-11T20_04_54_335Z-debug-0.log npm WARN config production Use --omit=dev instead.
deckmafia@1.0.0 start npm run build && node build/index.js
npm WARN config production Use --omit=dev instead. Can you help me by letting me know if this is an issue on your end or mine please?
20 Replies
Percy
Percy•6mo ago
Project ID: N/A
Guillo
Guillo•6mo ago
Deployment ID?
Brody
Brody•6mo ago
it's your app not properly handling the sigterm signal railway sends when taking your old deployment offline, if you aren't actually having issues with anything then it's safe to ignore
Guillo
Guillo•6mo ago
I am having issues
Brody
Brody•6mo ago
please describe the issues
Guillo
Guillo•6mo ago
the bot is not responding to the commans commands and now i got even a bigger error in railway
Brody
Brody•6mo ago
and when are you seeing this sigterm error?
Guillo
Guillo•6mo ago
when i restart status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1183888573557133393/aW50ZXJhY3Rpb246MTE4Mzg4ODU3MzU1NzEzMzM5MzpqRFQ3UW1BamxGMERYTEk1aUlLSDFhVTBnYTR2bjdtbU12dFkwTlQ0aE9BbUlOTUtoUTlod2gzUTRzNVRFaG1VVGNoOGF6MTBaeW90SUxMME1uRUZJV2FIY3pyWE9aY1A0elBMeWFnZXpUZGtQNHNtSFJtdzVkT1FQUE9NaFhCQQ/callback';, requestBody: { files: [], json: { type: 4, data: [Object] } } } node:events:491 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction at SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/index.js:933:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/index.js:712:14) at async REST.request (/app/node_modules/@discordjs/rest/dist/index.js:1321:22) at async ChatInputCommandInteraction.reply (/app/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:394:10) at processTicksAndRejections (node:internal/process/task_queues:85:21) { rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1183888573557133393/aW50ZXJhY3Rpb246MTE4Mzg4ODU3MzU1NzEzMzM5MzpqRFQ3UW1BamxGMERYTEk1aUlLSDFhVTBnYTR2bjdtbU12dFkwTlQ0aE9BbUlOTUtoUTlod2gzUTRzNVRFaG1VVGNoOGF6MTBaeW90SUxMME1uRUZJV2FIY3pyWE9aY1A0elBMeWFnZXpUZGtQNHNtSFJtdzVkT1FQUE9NaFhCQQ/callback';, requestBody: { files: [], json: { type: 4, data: { content: 'There was an error while executing this command!', tts: false, nonce: undefined, embeds: undefined, components: undefined, username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: 64, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } } } } npm WARN config production Use --omit=dev instead.
deckmafia@1.0.0 start npm run build && node build/index.js
npm WARN config production Use --omit=dev instead.
deckmafia@1.0.0 build rimraf ./build && tsc
Brody
Brody•6mo ago
seeing the sigterm error when you restart is normal like I mentioned, your issues are elsewhere
Guillo
Guillo•6mo ago
ok ty
Brody
Brody•6mo ago
but I don't do discord bot development so I'm gonna have to call in the expert @Fragly
Guillo
Guillo•6mo ago
ok
Fragly
Fragly•6mo ago
reading thread history rq this kind of error happens normally when your bot isn't handling an interaction a user made correctly do you have slash commands in your bot?
Guillo
Guillo•6mo ago
yes
Fragly
Fragly•6mo ago
mind sending me the code snippet responsible for handling slash commands?
Guillo
Guillo•6mo ago
I... have no idea what it is. I lost touch with my developer so I wanted to find out if it is a you problem or mine, to address it
Fragly
Fragly•6mo ago
🤨 you should err.. get in touch with your developer definitally a user error though asn' fault with your code
Guillo
Guillo•6mo ago
my developer is permanently not available ok ty
Fragly
Fragly•6mo ago
No problem, best of luck
Guillo
Guillo•6mo ago
Thank you