Git Product home page Git Product logo

Comments (7)

loftgren avatar loftgren commented on June 12, 2024

2017-06-15T18:22:15.927Z 8ec3fc1b-51f7-11e7-96b6-73db4dc77164 Error: Failed to retrieve data, status code: 500
at ClientRequest.lib.get (/var/task/sonosProxy/httpClient.js:13:17)
at ClientRequest.g (events.js:291:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)

from echo-sonos.

loftgren avatar loftgren commented on June 12, 2024

Please help...

from echo-sonos.

loftgren avatar loftgren commented on June 12, 2024

I'm begging here... please help. All else works fine... I can do everything else... I just can't actually get it to play anything with the "Invalid Music Service" appearing.

from echo-sonos.

esakowski avatar esakowski commented on June 12, 2024

Are you by chance using Spotify? I had a similar issue that modifying one line of code corrected.

from echo-sonos.

loftgren avatar loftgren commented on June 12, 2024

I am using Spotify. What was the line of code that you changed?

from echo-sonos.

SeanNazareth avatar SeanNazareth commented on June 12, 2024

I was having a similar problem with Spotify.

I tracked it down to the fact that the Amazon Alexa Skill was outputting a line like:
"http://raspberrypi:5005/house/musicsearch/Spotify/song/artist:Coldplay"

Where the "service" was capitalized as "Spotify", but the javascript is looking for all lower case.

I patched the file "lib/actions/musicSearch.js" with the following:

----patch below----
196c196
< const service = values[0].toLowerCase();

const service = values[0];
----patch above----

which just makes the musicSearch use lowercase for the music Service.

Sean

from echo-sonos.

edwindotcom avatar edwindotcom commented on June 12, 2024

This is a critical patch to get spotify working. Note lib/actions/musicSearch.js is in the node-sonos-http-api library

from echo-sonos.

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.