/Sessions/ID/Command endpoint crashes when giving arguments #2779

Closed
opened 2026-02-06 22:25:09 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ThibaultNocchi on GitHub (Mar 12, 2021).

Describe the bug
When a client sends a command on the /Sessions/ID/Command endpoint with a list of arguments (such as setting the audio or sub track), the server seems to crash and though doesn't apply the setting.

System (please complete the following information):

  • OS: dietpi
  • Clients: tried from web and Android
  • Receivers : web and MPV Shim
  • Jellyfin Version: 10.7.0

To Reproduce

  1. Remote play a media (to MPV Shim for instance)
  2. Try to change the audio or sub track, and it doesn't change
  3. Try to use a non argument command (such as the arrows on the "remote" like interface), it works

Expected behavior
It shouldn't crash parsing the values

Logs
Client sent payload to /Sessions/ID/Command:

{
  "Name":"SetSubtitleStreamIndex",
  "Arguments":{
    "Index":3
  }
}

Received answer:

{
  "type":"https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "title":"One or more validation errors occurred.",
  "status":400,
  "traceId":"00-c26344a2de8dea40b91a4a62f4e83d22-62709d3b40abfe43-00",
  "errors":{
    "command":[
      "The command field is required."
    ],
    "$.Arguments.Index":[
      "The JSON value could not be converted to System.Collections.Generic.Dictionary\u00602[System.String,System.String]. Path: $.Arguments.Index | LineNumber: 0 | BytePositionInLine: 55."
    ]
  }
}

Working command:

{
  "Name":"GoToSettings"
}
Originally created by @ThibaultNocchi on GitHub (Mar 12, 2021). **Describe the bug** When a client sends a command on the `/Sessions/ID/Command` endpoint with a list of arguments (such as setting the audio or sub track), the server seems to crash and though doesn't apply the setting. **System (please complete the following information):** - OS: dietpi - Clients: tried from web and Android - Receivers : web and MPV Shim - Jellyfin Version: 10.7.0 **To Reproduce** 1. Remote play a media (to MPV Shim for instance) 2. Try to change the audio or sub track, and it doesn't change 3. Try to use a non argument command (such as the arrows on the "remote" like interface), it works **Expected behavior** It shouldn't crash parsing the values **Logs** Client sent payload to `/Sessions/ID/Command`: ```json { "Name":"SetSubtitleStreamIndex", "Arguments":{ "Index":3 } } ``` Received answer: ```json { "type":"https://tools.ietf.org/html/rfc7231#section-6.5.1", "title":"One or more validation errors occurred.", "status":400, "traceId":"00-c26344a2de8dea40b91a4a62f4e83d22-62709d3b40abfe43-00", "errors":{ "command":[ "The command field is required." ], "$.Arguments.Index":[ "The JSON value could not be converted to System.Collections.Generic.Dictionary\u00602[System.String,System.String]. Path: $.Arguments.Index | LineNumber: 0 | BytePositionInLine: 55." ] } } ``` Working command: ```json { "Name":"GoToSettings" } ```
OVERLORD added the bug label 2026-02-06 22:25:09 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#2779