Zombie Connection
I get zombie connection error and bot doesnt even startup, had this issue before but changed my hosting service
Now it doesnt work on any hosting services
33 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 staff@Qjuh
Do you remember the error, last time I spoke to you
it says fully ready
then zombie connection
whats the reason for zombie connection
those are just catching unknown interactions
bot ready => zombie connection
I have no idea why it gets there
everything looks fine
fully ready, logged in
then zombie connection out of nowhere
@Qjuh
zombie connection occurs when there is no ready event fired?
before ready?
just connects to database
but shouldnt it continue after its marked fully ready
same code was working 3hrs ago
hmm let me try that
it started working randomly now
without pushing anything
should I put that into ready?
client.on("ready", async () => {
console.log(
Logged in as as ${client.user.tag}!
);
console.log(Bot is in ${client.guilds.cache.size} servers
);
mainLogs = client.channels.cache.get("1125854676995293224");
await startChecking();
});
ready is this rn
I can add dbconnect above startchecking
would that work
yes seems like its blocking but would this code block for that long
so basicly zombie connection happens when bot is not ready in 41 secs?
I do await mongo btw
its working now when I changed the hosting lol
this is so weird
first it stopped working on my local
then stopped working on render
next time it will stop working on heroku 🥲
@Qjuh
then who would help me it stops working
randomly
like I said
next time it will stop working on heroku
then I am basicly fucked
yeah but once it stops working on any platform
it doesnt work anymore
doubt that ethernet issue
no
okay so basicly zombie connection is when heartbeat is not received right?
what exactly receives the heartbeat
maybe I can focus on that
yeah but it worked flawless for 1.5 months
then some day it stopped working even with older commits
I saw something about compilation on one of threads
hmm so mongodb can block my ip?
or might have blocked
yup yup thats allowed access from anywherelet me try running it without any db connection on my local
code & terminal response
was testing that
1sec
some guy told me that fixed it for him
rn it logs in
but no console log
here console .log(msg.author.id)
and 608 unavailable guilds
so I just receive events from available guilds right?
why would it give unavailable guild count
yes latest
npm list
on github I saw this
how can I add it on 14.14.1
oh
I am out of options 🥲
675
logging it on when bot first is ready
to not see those on logs idk
let me change
bot uses those
running with this code
Probably idk it was working so I left it
I think it doesnt receive any heartbeats right?
I dont see any received
yes
but I have the same case on hosting services as well
checking
wait actually let me remove all
partials etc
just removed them in case
okay now seems to be working but
I couldnt see msg author ids come in but 1sec
hmm okay
okay with this code
it seems to be working
so the issue is connection or the intents?
hmm
so here
I probably need presences and members tho
mhh
Shows different embes
embeds to mobile and desktop users
for members
I am fetching users to give roles etc
its working tho me send you the thing
we have adjustcoin multiple
to add coins to roles
does this code need that
members.fetch part
bot was taking 1.5gb mem when I was using it without customized caching
so here if I remove the last 2, should it work
presence and member
was using render but it started crashing
so switched to heroku
I think thats the main difference from many bots right
didnt see anyone using presence intent with huge bots
oh yeah my vps stopped working so thats why I changed the render at first
it all depends on connection right, for me?
presence most likely taking too much time and connection cant keep up
okay I think you are right
removed presence only from this code
and its working on my local
6sec good?
what would be optimal
I guess this
on my test bot with 2 servers
Thank you so much
I will update you here if it works flawless
@Qjuh it was indeed presences
thank you for support