How to debug MatchMaker

3 Apr 2020, 01:39

Sometime, it has error with matchmaker. Like this

alt text

The problem is I don't know where the line of code that cause error. How can I debug. It just happen sometime and when I restart the service, it works again.
I tried run with DEBUG=colyseus:* node index.js but no error output. I tried to add log in your code and find out that in the CreateRoom function,
const roomsSpawnedByProcessId = yield exports.presence.hgetall(getRoomCountKey());
roomsSpawnedByProcessId is null, I used Redis.
No idea why

3 Apr 2020, 03:51

Please help me. My product is in public test and prepare for official publish. And I got this problem

3 Apr 2020, 10:21

Hi @boygiandi, this error is likely to be coming from your application. If you're using TypeScript, the compiler should be able to warn you where the issue is.

This could be happening if you have if (yourConstant = x) instead of if (yourConstant == x) for example.

3 Apr 2020, 10:38

@endel said in How to debug MatchMaker:

ming from your application. If you're using TypeScript, the compiler should be able to warn you where the issue is.
This could be happening if you have if (yourCon

No, it come from the MatchMaker request