Unable to upload emoji: TypeError: terminated
Hello, when I try to upload emojis using attachment, it result as this:
The code:
The code work locally, but not in production. I have no idea what caused that issue.
Discord.js version: ^14.15.3
Node.js version: v20.15.0
Both Discord.js version and Node.js are same between local and production.
12 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 OPThe "stream" argument must be an instance of Stream. Received an instance of ReadableStreamupdate your node version (make sure it's 20) you could try logging process.version
Yes, it's node v20.15.0
how are you checking that?
I haven't do the
process.version
, but when I did node -v
it result v20.15.0just in case try logging it
Alright
It showed as
v18.13.0
apparently.how are you starting the bot?
Am currently using pm2 to keep the bot active when the shell are closed
you could do that with screen or tmux
though it's not really discord.js related anymore
if you need further help you should ask in #other-js-ts
Alright, I found the solution by doing
pm2 update
so it can get the latest node. Thanks for the help. I will mark the post as solved.