@discordjs/rest requests behave differently when deployed to a serverless node environment vs. local
Using
@discordjs/rest
to create a standalone node project in an express-like API, await api.interactions.defer()
hangs and never completes when running in an edge environment.
is there a way to disable queued requests and always make the REST client that I create make requests sequentially? I can't even see the errors being thrown or if the request is being cancelled.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!
running
@discordjs/[email protected]
and @discordjs/[email protected]
creating my api client:
cool thanks for the tips!
hmm nothing is throwing 👀
if i don't await
the first request to defer my interaction reply, the editReply
and everything run and things appear fine but obviously i think i should be able to await that first request