sound-redux icon indicating copy to clipboard operation
sound-redux copied to clipboard

Songs won't load

Open tryzniak opened this issue 8 years ago • 2 comments

Seems like something has changed in Soundcloud API . For example https://api.soundcloud.com/tracks?linked_partitioning=1&limit=50&offset=0&client_id=e582b63d83a5fb2997d1dbf2f62705da&tags=tech%20house returns 401 (Unauthorized).

tryzniak avatar Nov 08 '17 19:11 tryzniak

Yeah, unfortunately, Soundcloud revoked the api keys without any warning or explanation. I've tried bugging them about it but they haven't gotten back to me yet.

https://twitter.com/SCsupport/status/926407470813274114

andrewngu avatar Nov 08 '17 19:11 andrewngu

Hey, @andrewngu . I've kind of investigated what's preventing songs from loading. Your dev client_id was indeed revoked, but the prod key is still working! You can see it's working by going to soundredux.io in private mode. Why's it working in private mode and not in normal? Probably it has something to do with cache busting. If I go to Chrome's DevTools > Application > Clear storage and clear storage sound-redux starts working again in normal browsing mode. What may be helpful here is to add hashes to build filenames. Webpack allows to do it by using CommonsChunkPlugin, you already have installed the plugin but forgotten to add [chunkhash] to the output filename. Here's a link to Webpack's website about caching.

I tried to go through the same procedure on the dev version of the website, but it wasn't loading songs until I changed the client_id to the prod one.

tryzniak avatar Dec 04 '17 09:12 tryzniak