Failed to parse message header for protocol Json


  We are currently working on a project that is using photon javascript. We are facing a random error and we are unable to find what is causing this error. Also there is not enough information available for it on the web. The Error Code is -12 and the error message is "Failed to parse message header for protocol Json". I am also attaching a screenshot further explaining this error. I'll be really thankful to you if you help me in this matter.


  • This happens when the message exceeds 50 kbyte limit.

    We will improve the server error message to make it clear that the limit has been exceeded.

  • Thanks a lot. I figured out that the message limit was exceeding.