HTTP Status code 400 [TypeScript]
Making a bot using typescript that fetches a specific api, then sends the info formatted into an embed.
i first start off defining headers (don't worry, api key is public)
which, is basically the same code i've used for my other file, just without the "nextPage".
(don't mind the non existent api link, it's there in my code) this just prints out debug info, which, the nextPage looks fine, but the json response is wrong, returning a "[Symbol(realm)]: null,". i am using the meilisearch api to fetch stuff. but, still gives out http status code 400.
my other code, that is basically the same thing, fetches just fine. is the issue within "nextPage"?
2 Replies
- 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 OPnode version is v20.12.2
oops, nvm, solved