You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, I accidentally entered the wrong Redis server address, which was actually another TCP service address, resulting in the application crashing
After hours of debugging, I see that It was happen because on the Redis transporter class
"connect" event not tell the redis client is "ready", just emits when a connection is established to the Redis server. @icebob you can try with this code
Today, I accidentally entered the wrong Redis server address, which was actually another TCP service address, resulting in the application crashing
After hours of debugging, I see that It was happen because on the Redis transporter class
moleculer/src/transporters/redis.js
Line 45 in 6a58b17
and
moleculer/src/transporters/redis.js
Line 51 in 6a58b17
"connect" event not tell the redis client is "ready", just
emits when a connection is established to the Redis server.
@icebob you can try with this code
After a moment, it will crash with error
I found just 1 way to keep moleculer does not crash that is changing line 45,51 of redis transporter class to
The text was updated successfully, but these errors were encountered: