Closed DheathNone closed 2 years ago
I can try to debug this more if there are any ideas to try.
Can you perform a search on your project and identify if there is only one instance of redisClient.connect()
? 🤔
Jack
This is the only one instance. There are not really modifications to the upstream aside from some minor docker configurations to make it run on Raspberry pi.
You say you moved the connect()
method call from globals.ts
to ready.ts
and that allows it to work. This is, however, the default configuration. Could you clarify this?
The other way around. This issue started to occur after commit: cd601b43316d03882986628b2e82e802523f2303
By reverting the connect()
to globals.ts
the issue goes away.
I'm also having the same issue rn and help on fixing it? Whatcha mean by reverting connect() to globals.ts? or is there like a complete file I can just copy and paste?
Hi guys this should be fixed in the latest commit! @DheathNone fix makes sense, because the redis client would ONLY connect when the bot has logged in whereas in the globals file it tries to connect to Redis straight away. Simple oversight on my part. 😁
Jack
I'm always getting time out error for Redis after the move of globals.redisClient.connect(); from src/config/modules/globals.ts to src/events/modules/ready.ts. When I move the globals.redisClient.connect(); back it works.
I'm not sure but I think this might be because of I'm running this on quite a slow system. When looking into this I noticed this:
https://github.com/redis/node-redis/issues/1656