Error with Janus Streaming 'watch' Request: Missing ID Despite Sending Integer

Hello,

I’m encountering an issue with the Janus Streaming API where it consistently returns an error for a missing id field in the ‘watch’ request, even though I am sending it as an integer. The server responds with: Error 453: Missing mandatory element (id). I’ve confirmed that id is indeed an integer and properly included in the request. Has anyone faced this issue before? Any insights or solutions would be greatly appreciated!
Thank you!
Here’s the JSON payload I’m sending:

{
  "janus": "message",
  "body": {
    "request": "watch",
    "id": 70
  },
  "transaction": "start_stream_timestamp"
}

Log from my backend
{
  "janus": "success",
  "session_id": 7287380579951858,
  "transaction": "poll_result_1731064225639",
  "sender": 616571765629793,
  "plugindata": {
    "plugin": "janus.plugin.streaming",
    "data": {
      "streaming": "event",
      "error_code": 453,
      "error": "Missing mandatory element (id)"
    }
  }
}

You should check what’s traveling on the wire, so the content of the message you see on HTTP or WebSockets. It may be your endpoint thinks it’s setting a property but it’s then not serialized correctly. The error you see comes from a macro that does an automated check so I doubt the problem is there.