Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 1 of 1
  1. #1
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    The Netherlands

    ECONNRESET when jsonrpc request is invalid

    I've noticed that if I ask the jsonrpc API interface for something invalid, instead of returning an error message it just abruptly closes the HTTP connection, leading to an ECONNRESET error status in nodejs (for example).

    Take the query {"id":"1","method":"slim.request","params":["blah",["status","-","1","tags:A"]]}

    "blah" is not a valid playerId but instead of an error message to that effect, the HTTP connection just dies.

    Same (with a valid playerId) for the query ["spotty", "items", 0, 1000, "menu:spotty"] when the spotty plugin is not installed. Instead of an error message it kills the connection.

    Is there any way to not crash the connection and just get a failure status code ?

    p.s. It happens in 7.9.2, 7.9.3 and 8 so it does not seem like a recent bug
    Last edited by philchillbill; 2020-08-30 at 23:21.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts