Discordjs REST error iirc

Unhandled Rejection at: Promise { <rejected> } Reason: 261 | return params;
262 | }
263 | __name(makeURLSearchParams, "makeURLSearchParams");
264 | async function parseResponse(res) {
266 | return res.json();
^
SyntaxError: Unexpected end of JSON input
at C:\Users\komono\node_modules\@discordjs\rest\dist\index.js:266:16
at parseResponse (C:\Users\komono\node_modules\@discordjs\rest\dist\index.js:264:30)
Unhandled Rejection at: Promise { <rejected> } Reason: 261 | return params;
262 | }
263 | __name(makeURLSearchParams, "makeURLSearchParams");
264 | async function parseResponse(res) {
266 | return res.json();
^
SyntaxError: Unexpected end of JSON input
at C:\Users\komono\node_modules\@discordjs\rest\dist\index.js:266:16
at parseResponse (C:\Users\komono\node_modules\@discordjs\rest\dist\index.js:264:30)
I've been getting this error randomly when i start my bot since i updated djs
5 Replies
d.js toolkit
d.js toolkit3mo 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!
Mark
Mark3mo ago
why did you make a thread with no new details or acknowledgement of what you've already been told?
Melo
MeloOP3mo ago
Because i was told to make a thread so the issue dont get lost
Mark
Mark3mo ago
with no new details or acknowledgement of what you've already been told?
this way other people don't come in and do the same steps you've already gone through
Melo
MeloOP3mo ago
I tried all they told me to do to get more information with no result I dont know what else u expect me to do The best i can think of is saying "Couldnt verify discordjs rest version"
Want results from more Discord servers?
Add your server