R
Railway•12mo 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.
[email protected] 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•12mo ago
Project ID: N/A
Guillo
GuilloOP•12mo ago
Deployment ID?
Brody
Brody•12mo 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
GuilloOP•12mo ago
I am having issues
Brody
Brody•12mo ago
please describe the issues
Guillo
GuilloOP•12mo ago
the bot is not responding to the commans commands and now i got even a bigger error in railway
Brody
Brody•12mo ago
and when are you seeing this sigterm error?
Guillo
GuilloOP•12mo 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.
[email protected] start npm run build && node build/index.js
npm WARN config production Use --omit=dev instead.
[email protected] build rimraf ./build && tsc
Brody
Brody•12mo ago
seeing the sigterm error when you restart is normal like I mentioned, your issues are elsewhere
Guillo
GuilloOP•12mo ago
ok ty
Brody
Brody•12mo ago
but I don't do discord bot development so I'm gonna have to call in the expert @Fragly
Guillo
GuilloOP•12mo ago
ok
Fragly
Fragly•12mo 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
GuilloOP•12mo ago
yes
Fragly
Fragly•12mo ago
mind sending me the code snippet responsible for handling slash commands?
Guillo
GuilloOP•12mo 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•12mo ago
🤨 you should err.. get in touch with your developer definitally a user error though asn' fault with your code
Guillo
GuilloOP•12mo ago
my developer is permanently not available ok ty
Fragly
Fragly•12mo ago
No problem, best of luck
Guillo
GuilloOP•12mo ago
Thank you
Want results from more Discord servers?
Add your server