Got DisconnectMessage. Code: -12 Msg

Options

Hello together,

I am having a problem, that my master client is always directly disconnecting and I can't figger out why.

This is the error message I get.

Got DisconnectMessage. Code: -12 Msg: "Failed to parse Operation using protocol GpBinaryV18 / encrypted: False. errorCode=-12, errorMsg: 'Failed to read value for key:'245', errorMsg:'Empty Nested Arrays are not supported''. Data:{"vals":[244,201],"req":253}, op/ev/resp code=253". Debug Info: {}


Is there a possibility to expand the debugging and can someone explain me where this issue is comming from and how I can find out where its comming from?

Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options

    Hi @Fabi2805,

    Thank you for choosing Photon!

    Here is how to read the disconnect message error info details:

    253 is the code for RaiseEvent operation

    244 is the code for the custom event code parameter key in RaiseEvent operation request: in this case the event code is 201, which is a PUN event: SendSerialize. (PhotonView serialization)

    245 is the code for for the custom event payload parameter key in RaiseEvent operation request

    So it looks like you are trying to serialize an empty array inside another array or inside another data structure and this is not supported apparently.