Internal Server Error

Is this on my side or the APIs
js
try {
const response = await fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer apikey`,
"Content-Type": "application/json"
}
});
if (!response.ok) throw new Error(`Error: ${response.statusText}`);

const data = await response.json();
console.log(data.robloxId);
userProfile.robloxID = data.robloxId
await userProfile.save()
} catch (error) {
console.error("Failed to get Roblox ID:", error);
return null;
}
}
js
try {
const response = await fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer apikey`,
"Content-Type": "application/json"
}
});
if (!response.ok) throw new Error(`Error: ${response.statusText}`);

const data = await response.json();
console.log(data.robloxId);
userProfile.robloxID = data.robloxId
await userProfile.save()
} catch (error) {
console.error("Failed to get Roblox ID:", error);
return null;
}
}
Failed to get Roblox ID: Error: Error: Internal Server Error
at Object.execute (C:\Users\Rafferty\Desktop\italianpersonbot\src\commands\NonMods\rank.js:48:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Failed to get Roblox ID: Error: Error: Internal Server Error
at Object.execute (C:\Users\Rafferty\Desktop\italianpersonbot\src\commands\NonMods\rank.js:48:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3 Replies
d.js toolkit
d.js toolkit2w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna2w ago
this is usually an api problem, but in no way related to djs #other-js-ts
Asega
AsegaOP2w ago
oh sorry i thought this was the other js question before i resolve this tho do you know how i can see if the API is down

Did you find this page helpful?