Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got status 500 when invoking /MediaRenderer/AVTransport/Control #732

Closed
sli-cka opened this issue Nov 13, 2019 · 4 comments
Closed

Got status 500 when invoking /MediaRenderer/AVTransport/Control #732

sli-cka opened this issue Nov 13, 2019 · 4 comments

Comments

@sli-cka
Copy link

sli-cka commented Nov 13, 2019

When I try to Linein my living room speakers to the HDMI connected TV, i receive the following error:

  "Error: Got status 500 when invoking /MediaRenderer/AVTransport/Control\n at Object.invoke (/home/pi/node-sonos-http-api-master/node_modules/sonos-discovery/lib/helpers/soap.js:99:10)\n at Player.setAVTransport (/home/pi/node-sonos-http-api-master/node_modules/sonos-discovery/lib/models/Player.js:727:15)\n at Object.linein (/home/pi/node-sonos-http-api-master/lib/actions/linein.js:17:29)\n at handleAction (/home/pi/node-sonos-http-api-master/lib/sonos-http-api.js:117:35)\n at HttpAPI.requestHandler (/home/pi/node-sonos-http-api-master/lib/sonos-http-api.js:94:21)\n at /home/pi/node-sonos-http-api-master/server.js:50:13\n at Server.finish (/home/pi/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:111:13)\n at finish (/home/pi/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:170:14)\n at /home/pi/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:144:17\n at FSReqWrap.oncomplete (fs.js:153:21)"

Can you help me solving this issue?

@jishi
Copy link
Owner

jishi commented Nov 13, 2019

the linein action doesn't work with HDMI pr SPDIF inputs. I'm not familiar with how the HDMI input works, since I don't own a beam myself.

There is a workaround (see #109) but I'm not sure how it works with an HDMI device.

If you could send me the /roomname/status output when you have the hdmi linein selected for your beam, then it would tell me the exact avtransporturi needed to use the workaround. (replacing x-sonos-htastream:RINCON_XXXXXXXXXXXX01400:spdif)

@sli-cka
Copy link
Author

sli-cka commented Nov 13, 2019

Hi jishi,

thanks for your quick reply and this great api.
Here is the status output of /roomname/status/

volume 26 mute false equalizer bass -5 treble 0 loudness false speechEnhancement false nightMode true currentTrack duration 0 uri "x-sonos-htastream:RINCON_347E5C9129B101400:spdif" trackUri "x-sonos-htastream:RINCON_347E5C9129B101400:spdif" type "line_in" stationName "" nextTrack artist "" title "" album "" albumArtUri "" duration 0 uri "" trackNo 1 elapsedTime 1145 elapsedTimeFormatted "00:19:05" playbackState "PLAYING" playMode repeat "none" shuffle false crossfade false

Greetings

@jishi
Copy link
Owner

jishi commented Nov 13, 2019 via email

@sli-cka
Copy link
Author

sli-cka commented Nov 13, 2019

Ok, just found out that replacing /Roomname/linein with /Roomname/setavtransporturi/x-sonos-htastream:RINCON_347E5C9129B101400:spdif is a workaround. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants