Hazelwize
Hazelwize
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
Provided token: MTEyODQ0MTI1NDI4NDM2NTg1NA.GvKjqD.**************************************
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[WS => Manager] Session Limit Information
Total: 1000
Remaining: 984
[WS => Shard 0] Connecting to wss://gateway.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.6348442557756107; waiting 26187ms
[WS => Shard 0] Waiting for identify throttle
[WS => Shard 0] Identifying
shard id: 0
shard count: 1
intents: 1
compression: none
[WS => Shard 0] Waiting for event ready for 15000ms
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! Logged in as RoleReactor#3407
You got to the execution of /user
Error executing user
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/commands/fun/user.js:12:3)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:26:4) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129936142125518959/aW50ZXJhY3Rpb246MTEyOTkzNjE0MjEyNTUxODk1OTpabVg2UDN6Qkl3RXV3WTNBaHR1eUpVdkMxelZjTWxZc1RHTGkyRG5NZjZxVlZRcTFHc1ZlV3FHdzJOd2hUTVc2VlEyaTFwenpqbmt2SjRtc3R6MUxEYVZvUmFuRm9UdkJNTUpOVkJnRktybUE1dG85S3JPSDdaZUlqUlhXZGlVQg/callback'
}
/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.deferReply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5) {
requestBody: { files: undefined, json: { type: 5, data: { flags: undefined } } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129936142125518959/aW50ZXJhY3Rpb246MTEyOTkzNjE0MjEyNTUxODk1OTpabVg2UDN6Qkl3RXV3WTNBaHR1eUpVdkMxelZjTWxZc1RHTGkyRG5NZjZxVlZRcTFHc1ZlV3FHdzJOd2hUTVc2VlEyaTFwenpqbmt2SjRtc3R6MUxEYVZvUmFuRm9UdkJNTUpOVkJnRktybUE1dG85S3JPSDdaZUlqUlhXZGlVQg/callback'
}
Provided token: MTEyODQ0MTI1NDI4NDM2NTg1NA.GvKjqD.**************************************
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[WS => Manager] Session Limit Information
Total: 1000
Remaining: 984
[WS => Shard 0] Connecting to wss://gateway.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.6348442557756107; waiting 26187ms
[WS => Shard 0] Waiting for identify throttle
[WS => Shard 0] Identifying
shard id: 0
shard count: 1
intents: 1
compression: none
[WS => Shard 0] Waiting for event ready for 15000ms
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! Logged in as RoleReactor#3407
You got to the execution of /user
Error executing user
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/commands/fun/user.js:12:3)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:26:4) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129936142125518959/aW50ZXJhY3Rpb246MTEyOTkzNjE0MjEyNTUxODk1OTpabVg2UDN6Qkl3RXV3WTNBaHR1eUpVdkMxelZjTWxZc1RHTGkyRG5NZjZxVlZRcTFHc1ZlV3FHdzJOd2hUTVc2VlEyaTFwenpqbmt2SjRtc3R6MUxEYVZvUmFuRm9UdkJNTUpOVkJnRktybUE1dG85S3JPSDdaZUlqUlhXZGlVQg/callback'
}
/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.deferReply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5) {
requestBody: { files: undefined, json: { type: 5, data: { flags: undefined } } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129936142125518959/aW50ZXJhY3Rpb246MTEyOTkzNjE0MjEyNTUxODk1OTpabVg2UDN6Qkl3RXV3WTNBaHR1eUpVdkMxelZjTWxZc1RHTGkyRG5NZjZxVlZRcTFHc1ZlV3FHdzJOd2hUTVc2VlEyaTFwenpqbmt2SjRtc3R6MUxEYVZvUmFuRm9UdkJNTUpOVkJnRktybUE1dG85S3JPSDdaZUlqUlhXZGlVQg/callback'
}
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
Yes, this is with the vpn off
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
I can't remember if it was on or not. Here it is with it off for sure:
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
Provided token: MTEyODQ0MTI1NDI4NDM2NTg1NA.GvKjqD.**************************************
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[WS => Manager] Session Limit Information
Total: 1000
Remaining: 987
[WS => Shard 0] Connecting to wss://gateway.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.4160895576012904; waiting 17163ms
[WS => Shard 0] Waiting for identify throttle
[WS => Shard 0] Identifying
shard id: 0
shard count: 1
intents: 1
compression: none
[WS => Shard 0] Waiting for event ready for 15000ms
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! Logged in as RoleReactor#3407
You got to the execution of /user
[WS => Shard 0] First heartbeat sent, starting to beat every 41250ms
[WS => Shard 0] Heartbeat acknowledged, latency of 26ms.
Error executing user
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/commands/fun/user.js:12:3)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:17:4) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129918285413105685/aW50ZXJhY3Rpb246MTEyOTkxODI4NTQxMzEwNTY4NTpZcE5tSHY5TUhWSUwwQkI3WHZWR2hvaThxZFYzbVFwa1hXTmljTTVJRFpXclFuNjdOdG1keVJEY2hCejNkSEJYUG45ZmZ1TjA5SGVJeTB3NXpFeVRMVlphS3lYU2lselhsTG5PUlhtdnJLcGVVTGRRSFg4UjZldEpydTBSNk9tbg/callback'
}
Provided token: MTEyODQ0MTI1NDI4NDM2NTg1NA.GvKjqD.**************************************
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[WS => Manager] Session Limit Information
Total: 1000
Remaining: 987
[WS => Shard 0] Connecting to wss://gateway.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.4160895576012904; waiting 17163ms
[WS => Shard 0] Waiting for identify throttle
[WS => Shard 0] Identifying
shard id: 0
shard count: 1
intents: 1
compression: none
[WS => Shard 0] Waiting for event ready for 15000ms
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! Logged in as RoleReactor#3407
You got to the execution of /user
[WS => Shard 0] First heartbeat sent, starting to beat every 41250ms
[WS => Shard 0] Heartbeat acknowledged, latency of 26ms.
Error executing user
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/commands/fun/user.js:12:3)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:17:4) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1129918285413105685/aW50ZXJhY3Rpb246MTEyOTkxODI4NTQxMzEwNTY4NTpZcE5tSHY5TUhWSUwwQkI3WHZWR2hvaThxZFYzbVFwa1hXTmljTTVJRFpXclFuNjdOdG1keVJEY2hCejNkSEJYUG45ZmZ1TjA5SGVJeTB3NXpFeVRMVlphS3lYU2lselhsTG5PUlhtdnJLcGVVTGRRSFg4UjZldEpydTBSNk9tbg/callback'
}
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
That's what I'm thinking. This is my 4th day on the issue. I'm ok just using a VPN at this point. haha
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
It's still throwing the Unknown Interaction error when using deferReply(). I put the code you posted inside of the execute function for interactionCreate.
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
Ok, weird workaround for my issue that I found. If I'm on a VPN then my bot works beautifully on Ubuntu. It works on Windows either way. I'm guessing this is 100% an issue with my setup in some way.
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
How would I check the latency? I think you might be on to something, because I just got a response from the bot, but I have to send two slash commands back to back. The first request fails, but the second command gets a response.
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
I get the same error when deferring the reply.
30 replies
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
My code is here: https://github.com/Hazelwize/role-reactor I am on Node version: 20.4.0 I have tested on Node version: 18.16.1 and 20.4.0 Discord.js version: 14.11.0
30 replies