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

Service for getting Soundcloud token doesn't work #784

Open
zlocate opened this issue Sep 25, 2021 · 3 comments
Open

Service for getting Soundcloud token doesn't work #784

zlocate opened this issue Sep 25, 2021 · 3 comments

Comments

@zlocate
Copy link

zlocate commented Sep 25, 2021

Issue

Description

Page for getting Soundcloud token listed at docs doesn't work http://www.aratelia.com/index.php/open-source/77-main/88-connect-with-soundcloud#

Steps to Reproduce

  1. Open http://www.aratelia.com/index.php/open-source/77-main/88-connect-with-soundcloud#
  2. Click "Connect to SoundCloud"
  3. Select account and allow

Expected behavior:

Get soundcloud api token

Actual behaviour:

Alert with error Error: A request must contain the Authorization header. For details please refer to https://developers.soundcloud.com/blog/security-updates-api.

Aler with error

Reproduces how often:

100%

Versions

n/a

Installation Method Used

n/a

Additional Information

n/a

@SainteCroquette
Copy link

SainteCroquette commented Sep 30, 2021

Same error here, and it also happened when i try playing a soundcloud playlist.
[SoundCloud] (HTTPError) : 401 Client Error: Unauthorized for url: https://api.soundcloud.com/....
(when i try the given link with my browser i get the same result : Error: A request must contain the Authorization header.

Maybe the OAuth toket is outdated but for sure i cant get a new one

@zlocate
Copy link
Author

zlocate commented Oct 1, 2021

@SainteCroquette token has been generated corrected, issue was at SC.get(...) method

Soundcloud JS SDK was broken after API update and method always get error
изображение

You can get token from Firefox / Chrome Dev tools
изображение
Check it after soundcloud authorize

OR you may simple run it in browser console:
alert(SC.accessToken())
You got soundcloud API token that you can use at tizonia
изображение

@zlocate
Copy link
Author

zlocate commented Oct 1, 2021

The Soundcloud module that tizonia uses is also broken and the music plays one time out of five (soundcloud api requires auth token at Authorization header)

You can install fixed version by command:

pip install --upgrade --force-reinstall https: // github.com/zlocate/soundcloud-python-tizonia/archive/master.zip

The "fix" in this commit:
zlocate/soundcloud-python-tizonia@8d10ac3

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

2 participants