Skip to content

JSON API calls no longer function in Home Assistant. #1478

@kylepyke

Description

@kylepyke

Describe the bug
JSON API calls no longer function in Home Assistant.

To Reproduce
Create an API request. Using the default example command in HA developer tools fails with Slim::Control::Request::renderAsArray (2229) Error: request should set useIxHashes in Slim::Control::Request->new()

Example YAML:

action: squeezebox.call_method
data:
  command: playlist
  parameters:
    - loadtracks
    - album.titlesearch="Revolver"
target:
  entity_id: media_player.inside

Expected behavior
API requests should work.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information (please complete the following information):

  • OS on which you're running LMS: Debian
  • x86 VM
  • Web skin used: Material
  • LMS Version: 9.0.2
  • Player(s) involved
  • Addition information from the Settings/Information header section

Additional context
Log context:

26-01-01 11:31:39.3957] Slim::Web::JSONRPC::handleURI (141) POST data: [{"id": "1", "method": "slim.request", "params": ["02:00:ea:cd:ef:65", ["playlist", "loadtracks", "album.titlesearch=\"Revolver\""]]}]
[26-01-01 11:31:39.3959] Slim::Web::JSONRPC::requestMethod (425) Parsing command: Found client [02:00:ea:cd:ef:65]
[26-01-01 11:31:39.3959] Slim::Web::JSONRPC::requestMethod (474) Dispatching...
[26-01-01 11:31:39.3960] Slim::Control::Request::dump (2335) Request: Command [02:00:ea:cd:ef:65->playlist loadtracks] from JSONRPC  (Dispatchable)
[26-01-01 11:31:39.3961] Slim::Control::Request::dump (2339)    Param: [_fadein] = undef
[26-01-01 11:31:39.3961] Slim::Control::Request::dump (2339)    Param: [_index] = undef
[26-01-01 11:31:39.3962] Slim::Control::Request::dump (2339)    Param: [_what] = [album.titlesearch="Revolver"]
[26-01-01 11:31:39.3962] Slim::Control::Request::dump (2339)    Param: [_listref] = undef
[26-01-01 11:31:39.3978] Slim::Control::Request::dump (2335) Request: Command [02:00:ea:cd:ef:65->playlist jump] (Dispatchable)
[26-01-01 11:31:39.3978] Slim::Control::Request::dump (2339)    Param: [_seekdata] = undef
[26-01-01 11:31:39.3979] Slim::Control::Request::dump (2339)    Param: [_noplay] = undef
[26-01-01 11:31:39.3979] Slim::Control::Request::dump (2339)    Param: [_fadein] = undef
[26-01-01 11:31:39.3980] Slim::Control::Request::dump (2339)    Param: [_index] = undef
[26-01-01 11:31:39.3984] Slim::Control::Request::renderAsArray (2229) Error: request should set useIxHashes in Slim::Control::Request->new()
[26-01-01 11:31:39.3984] Slim::Control::Request::renderAsArray (2229) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Control/Request.pm line 2229)
   frame 1: Slim::Control::Request::renderAsArray (/usr/share/perl5/Slim/Web/Cometd.pm line 959)
   frame 2: Slim::Web::Cometd::requestCallback (/usr/share/perl5/Slim/Web/Cometd.pm line 807)
   frame 3: Slim::Web::Cometd::__ANON__ (/usr/share/perl5/Slim/Control/Request.pm line 2054)
   frame 4: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 2054)
   frame 5: Slim::Control::Request::notify (/usr/share/perl5/Slim/Control/Request.pm line 859)
   frame 6: Slim::Control::Request::checkNotifications (/usr/sbin/squeezeboxserver line 708)
   frame 7: main::idle (/usr/sbin/squeezeboxserver line 676)
   frame 8: main::main (/usr/sbin/squeezeboxserver line 1212)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions