scholtzan / homebridge-rusty-spotify

Spotify plugin for Homebridge written in Rust
MIT License
14 stars 5 forks source link

Homebridge restarts after pause #20

Open vrkttr opened 3 years ago

vrkttr commented 3 years ago

if i activate the "pause" button, the spotify-player stops playing, but also homebridge restarts with an error: "Error starting playback" or "Error pausing playback".

It stops or resume the playback everytime, but restarts homebridge also everytime...

Sometimes there are some more errors like "Error getting volume state: JsValue(Object({"message":"invalid json response body at https://api.spotify.com/v1/me/player?device_id=<randomnumber> reason: Unexpected end of JSON input","type":"invalid-json"}))"

btw: is it correct, that in the logfiles are massiv json strings like "Register Spotify device: Accessory { obj: JsValue(Object({"_events":{},"_eventsCount":0,"services":[{"_events":{},"_eve........."

After i seperate this plugin as its own bride, i got the error below, after pause or resume the playback:

(node:194983) UnhandledPromiseRejectionWarning: Error pausing playback
(node:194983) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:194983) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:194983) UnhandledPromiseRejectionWarning: Error starting playback
(node:194983) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)