I have a strange thing happening, using latest nakama server and nakama-js bindings.
I’m sending some rpc calls with client.rpc(), and it works for one rpc call, for the other I get a json parse error (SyntaxError: “JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 6 of the JSON data”)
Even though the object is valid json and works elsewhere, I even tried putting it in the other rpc call that works and it was fine.
I even tried putting an empty object in both rpc calls, I get the same strange behaviour with the first working and the other giving a json parse error.
Except for the different rpc method string, everything else is identical.
What could be the issue?