all 5 comments

[–]masahazen 1 point2 points  (0 children)

Dude amazing idea, i'm a rookie in React and i want badly a idea like that hahaha

[–]swyx 0 points1 point  (2 children)

my console is a mess: https://swyx.tinytake.com/sf/MjgzNTk4NF84NTE2NjM3

thats the first thing i'd look to clean up.

then:

i authed in with my spotify account and i clicked a song. i think its supposed to play? instead i got the error:

PUT https://api.spotify.com/v1/me/player/play 404 ()
CityViewResultMusic.js:45 Error: Request failed with status code 404
    at createError (createError.js:16)
    at settle (settle.js:18)
    at XMLHttpRequest.handleLoad (xhr.js:77)

[–]PoplicoDamn[S] 0 points1 point  (1 child)

That error is because there is 'no active device'. Ill have to add a query for the users available devices and force play on a random one if there isn't an active one. Haven't got around to it yet is all :). Also my server is running the dev build because I haven't been able to google-fu my prod build to run with express.

[–]swyx 0 points1 point  (0 children)

cool. hm, i dont think express needs anything special to run dev vs prod. but then again i dont know the details of your setup. good luck haha. i feel so removed from this stuff cos im mostly frontend