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