I need help upgrading fish-game OnlineMatch.gd code to 4.1

I recently watched this tutorial of FinePointCGI and that was a godot 3.5 tutorial(I couldn’t find any 4.2 tutorial). He copied the whole 2 of the Online.gd and OnlineMatch.gd from the template project fishgame which heroiclabs made themselves. I’ve tried to upgrade them to 4.2 but i got a lot of issue when I tried use custom_rpc_sync function. it said that assertion failed (look like match_id and match_state doesn’t update after match found successfully)

This is my Online.gd and this is my OnlineMatch.gd