FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I am getting this error like 20 seconds after the bot is on but 2 days ago it was working fine and i have not added any new commands to it, and i have done some research and some people say it has to do with your pc and i have 16gb of ram but when i host it on heroku i am still getting this error so if anyone can help please help me.
7 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!How many servers your bot is in? Do you use sharding? How many shards do you have? Show your client options.
bots in 400 servers and dk what sharding is
how would i find the loop?
if there is one
did you fixed it coz i'm having the same problem
no i just made a new source code for the bot and moved my commands to it and os far that has done the trick
Didn't you tried to compare the code
Like what fixed your problem