Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback rate limits #89

Open
mediaformat opened this issue Mar 11, 2017 · 41 comments
Open

Playback rate limits #89

mediaformat opened this issue Mar 11, 2017 · 41 comments

Comments

@mediaformat
Copy link

mediaformat commented Mar 11, 2017

Cumulus v0.10.0 on macOS 10.11.6

After login I can see my feed.

As soon as I try to play anything from my list, the player just skips through everything, loading all track data into the player (image, artist, track, time remaining).

@Hum4n01d
Copy link
Contributor

Hum4n01d commented Mar 11, 2017 via email

@mediaformat
Copy link
Author

tried v.0.9.0, same deal

@Hum4n01d
Copy link
Contributor

I’m using v0.9.0 and it’s skipping through, how should I fix this? /cc @gillesdemey

@Hum4n01d
Copy link
Contributor

This might be helpful @gillesdemey:

I ran with NODE_ENV=development and got a whole bunch errors in the console that said:

https://api.soundcloud.com/tracks/224674551/stream?client_id=f17c1d67b83c86194fad2b1948061c9e 429 (Unknown)

I checked one of the error pages and I saw this:

{"errors":[{"meta":{"rate_limit":{"bucket":"by-client","max_nr_of_requests":15000,"time_window":"PT24H","name":"plays"},"remaining_requests":0,"reset_time":"2017/03/12 12:22:59 +0000"}}]}

It looks like there’s rate limiting stopping Cumulus from working. :(

@gillesdemey
Copy link
Owner

I think it's pretty obvious at this point that Cumulus' application credentials are exceeding the 15.000 plays / 24h rate limit.

https://developers.soundcloud.com/docs/api/rate-limits

I'm not quite sure if we can increase the rate limit, so at this point all we can do is show some sort of exception to the user 😔

@Hum4n01d
Copy link
Contributor

ok :)

@mirshko
Copy link
Contributor

mirshko commented Mar 13, 2017

@gillesdemey I too am having this issue. I would escalate this issue to critical bug.

I hope SoundCloud doesn't give you guys the Twitter dev treatment.

@ghost
Copy link

ghost commented Mar 15, 2017

Having the same issue, making Cumulus unusable.

@MichielDeMey
Copy link
Collaborator

@DougoS Everyone is having the same issue, it appears that Soundcloud introduced rate limits on their API making it unusable in case a lot of users are using the same app.

There is not much we can do at this point except reach out to them asking to increase the limit for our API key.

@benjaminclarkco
Copy link

I used to use soundnode and then I switched to cumulus because it ran into the same rate-limiting problem. Back on the hunt. Thank you to the devs for making such an insanely beautiful and minimal app. I will miss it. My productivity will miss it. Purple heart 💜 much love, respect ✌️

@gillesdemey
Copy link
Owner

Thanks for the kind words @BenjaminClark.

I've requested to have the API rate limit increased, waiting to hear back from them 🤞

@gillesdemey gillesdemey changed the title on play player skips through list Playback rate limits Mar 15, 2017
@mediaformat
Copy link
Author

otherwise a few api keys could be used, and switch between them on rate-limit error

@MichielDeMey
Copy link
Collaborator

MichielDeMey commented Mar 15, 2017

@mediaformat We've discussed this approach internally and we're not going to go down this road since this goes against their Terms of Use.
See: https://developers.soundcloud.com/docs/api/terms-of-use#quotas

As much as we'd like to, as an open-source community we have the obligation to play by the rules. 😉

@mediaformat
Copy link
Author

ok, I hadn't seen that page!

Fairplay to you guys 🥇

@Hum4n01d
Copy link
Contributor

Dang

@FoxxMD
Copy link

FoxxMD commented Mar 23, 2017

😢

@seppestas
Copy link
Collaborator

Should we start some sort of petition? I'm thinking some kind of link to retweet a tweet to Soundcloud or something?

@afischer
Copy link

afischer commented Apr 4, 2017

Would someone with the know-how be interested in writing a how-to build from source with your own API key?

Also—would it be possible to add an "API Key" field somewhere in settings so users could use their own without having to build from source? Or would that also be a TOS violation?

@gillesdemey
Copy link
Owner

Also - would it be possible to add an "API Key" field somewhere in settings so users could use their own without having to build from source?

Seems like quite the hassle, SoundCloud now requires users to request API credentials through a form (and it might take up to a month for them to get back to you).

@araphiel
Copy link

araphiel commented Apr 5, 2017

@afischer

If you have Yarn & Grunt installed:

  1. git clone https://github.com/gillesdemey/Cumulus.git && cd Cumulus
  2. open app/js/app.js & replace the client_id on line 47 with your API key.
  3. yarn outdated
  4. yarn upgrade [insert all listed dependencies from above.]
  5. yarn
  6. grunt build

It took me about 3 weeks to get API access.

edit: I'll submit a PR when I get time if this no longer works for you.

@afischer
Copy link

afischer commented Apr 6, 2017

@araphiel — Thanks. Guess I need to apply and wait a month for credentials 🙄

Not to get off topic but SC really needs to find a way to make some money... It would really be a shame to see them go under.

@jsphpl
Copy link

jsphpl commented Apr 10, 2017

In the mean time, just copy the client_id from your browser's dev tools (visiting soundcloud.com) and apply it using the approach described by @araphiel.

screen shot

@Zarlex
Copy link

Zarlex commented Apr 13, 2017

In the meantime you can give this alternative SoundCloud player a try :) https://cloud-player.io It also ships a native desktop app for Windows and Mac
Code is open source available here and build with Angular2

@jsphpl
Copy link

jsphpl commented Apr 14, 2017

@Zarlex how do you tackle the rate limit problem?

@Zarlex
Copy link

Zarlex commented Apr 14, 2017

So far the app is not used by many people so i'm not exceeding the 15000 requests/day :)

@ghost
Copy link

ghost commented May 8, 2017

Having same issue. 😞

@philippe-git
Copy link

I had a similar experience as @araphiel: it took SoundCloud a couple weeks to process the form and issue API keys for me to use in a custom build – looking forward to using Cumulus again!

This was referenced Jun 24, 2017
@markhughes
Copy link

@shyam-habarakada is there a build step missing? I'm getting Error: Cannot find module 'electron-settings'

Uncaught Exception:
Error: Cannot find module 'electron-settings'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/Users/markhughes/src/Cumulus/dist/Cumulus-darwin-x64/Cumulus.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/markhughes/src/Cumulus/dist/Cumulus-darwin-x64/Cumulus.app/Contents/Resources/app/index.js:12:22)
    at Object.<anonymous> (/Users/markhughes/src/Cumulus/dist/Cumulus-darwin-x64/Cumulus.app/Contents/Resources/app/index.js:135:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)

@zachmoody
Copy link

@markehme I'm on OSX and got around that by downgrading NPM to 4.6.1. No idea why that works or if it's good practice.

@star114
Copy link

star114 commented Dec 13, 2017

@markhughes
Did you fix it?
I’m in the same problem.

@anitricks
Copy link

I had the same problem as @markhughes

So I did mine with npm because yarn was giving me issues

install everything with npm install
but install electron-settings module version 2.2.2
so do npm install [email protected]
and then build with grunt build
it should work

I used the latest npm and grunt and every other module was the latest as well.

@FoxxMD
Copy link

FoxxMD commented Apr 18, 2018

For anyone coming across this thread @anitricks steps still work but there's no need for the electron settings anymore. @gillesdemey bumped the settings version and it just works now.

  • Follow steps 1-3 from the above comment
  • install with npm install
  • grunt build
  • Run the app from the dist directory 👍

@star114
Copy link

star114 commented May 27, 2018

There is still something wrong with "yarn", not "npm".

The dependency of this project is managed by "yarn" officially, but if you install the dependencies with yarn and grunt build, you get the same electron-settings error as @markhughes commented.

npm install is ok.

@Radu-Raicea
Copy link

Might be worth putting @shyam-habarakada's solution in the README for now.

@colinfran
Copy link

is there an updated temporary solution to this? none of the previous temporary solutions are no longer working for me

@markhughes
Copy link

markhughes commented Oct 3, 2018

@colinfran all we can do is use our own keys - not the one that are provided

@gguman
Copy link

gguman commented Oct 13, 2021

Can anyone help with installation pls. I got a lot of errors while trying to install it

@seppestas
Copy link
Collaborator

Can anyone help with installation pls. I got a lot of errors while trying to install it

No-one will be able to help you with that description. This issue is about the app being rate limited by the Soundcloud APIs. Do you suspect your issue is something similar?

If not, I suggest creating a new issue with a more detailed description and error log, but even then I don't know if anyone is still actively supporting this app.

@MichielDeMey MichielDeMey pinned this issue Oct 13, 2021
@gguman
Copy link

gguman commented Oct 14, 2021

Can anyone help with installation pls. I got a lot of errors while trying to install it

No-one will be able to help you with that description. This issue is about the app being rate limited by the Soundcloud APIs. Do you suspect your issue is something similar?

If not, I suggest creating a new issue with a more detailed description and error log, but even then I don't know if anyone is still actively supporting this app.

Thanks for the answer. I went through the above installation process but there are dependency issues - fs-xattr. Both npm and yarn have the same problems for me if I use the latest version of them. What version of software should I use to successfully build the app? Can someone make a video of the process that will help people? This app is perfect among others and I still haven't found any alternatives. It is very frustrating that it is not supported

@gguman
Copy link

gguman commented Oct 16, 2021

The application with node#11.15.0 was successfully built, but changing the client_id inside the file does not help - "Sorry, something went wrong" appears on any tabs. Also I noticed that now soundcloud works with api_v2. Maybe this is the problem? Is anyone using this app now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests