GithubHelp home page GithubHelp logo

Comments (4)

jishi avatar jishi commented on July 17, 2024

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.

dgmltn avatar dgmltn commented on July 17, 2024

I've tried that, though perhaps my xml encoding wasn't perfect. I'll look more into that. Thanks!

from node-sonos-discovery.

dgmltn avatar dgmltn commented on July 17, 2024

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.

jishi avatar jishi commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.