Comments (4)
Hi Doug.
This is probably because these uris require the appropriate metadata as
well, which is different for each service. This metadata seem to be used as
a reference for fetching the appropriate data from said service like title,
albumart etc.
Do you send any metadata? Usually these calls work anyway, but it usually
lacks info in the queue listing and when playing it usually only says the
uri.
On Apr 2, 2015 11:23 PM, "Doug Melton" [email protected] wrote:
I've tried AddURIToQueue to enqueue url's that look like this:
uri: "x-sonos-http:_t%3a%3a1157781.mp3?sid=11&flags=32&sn=6",
The speaker returns a 500 error, and the Sonos Controller tells me,
"Access Denied" (though the track information actually was added to the
queue). I'm thinking this is a security issue from Sonos, but is there a
way to solve it?—
Reply to this email directly or view it on GitHub
#29.
from node-sonos-discovery.
I've tried that, though perhaps my xml encoding wasn't perfect. I'll look more into that. Thanks!
from node-sonos-discovery.
Escaping the "&" in that url (along with escaping the entire metadata) seemed to help. Though I still have random "access denied" errors sometimes (even with the same request as one that worked one minute ago).
from node-sonos-discovery.
Hm, that's weird, since it will do that automatically:
uri = uri != null ? xmlEntities.encode(uri) : "";
metaData = metaData != null ? xmlEntities.encode(metaData) : "";
I usually make a wireshark dump of the request from the Sonos Controller and compare with my request to identify differences, then it usually becomes evident very fast on what the culprit is.
from node-sonos-discovery.
Related Issues (20)
- UnhandledPromiseRejectWarning HOT 5
- Implement same features in Java/Android app HOT 4
- npm test fails on spotify HOT 2
- Support switch to Line In and TV HOT 6
- No Metadata when browsing SQ:4 HOT 3
- setting incorrect volume HOT 7
- Uncaught (in promise) TypeError: Cannot read property 'baseUrl' of undefined HOT 1
- Request: Soundbar Input Information
- error: sonos.0 TypeError: Cannot read property '$text' of undefined HOT 5
- How to update libary
- Unable to get state of player
- Audio Delay
- What are all the possible state changes? HOT 2
- Spotify: "Wrong" album art when playing from playlist
- GetFavorites does not return all favorites HOT 3
- exception in recalculateGroupVolume HOT 7
- If local endpoint changes, subscribe will keep failing to reconnect. HOT 6
- HTTPS Support in lib/helpers/request.js HOT 5
- Question about code, half seconds HOT 3
- BTW: Great project!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sonos-discovery.