Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cannot access the client's own user information or tracks

Aperta
#147 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma

Direzione di ricerca

Start with the linked SoundCloud API documentation and the OAuth token flow, then investigate the reported GET /me and GET /me/tracks requests using client_credentials tokens. Done means determining whether those endpoints support this grant type and documenting or resolving the 401 behavior with a clear explanation and reproducible result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

Title: Cannot access the client's own user information or tracks

Issue found of: October 5th, 2021

Endpoint(s):
  • GET /me
  • GET /me/tracks
Steps to reproduce:

Using the client_credentials grant type we receive an access token from the oauth/token endpoint which we use immediately to try and retrieve the users data and tracks from the /me and /me/tracks endpoints.

In both cases a 401 unauthorized response gets returned.

Based on this paragraph from the docs we are led to believe that as long as we're only trying to access the user details of the owner of the app (client Id & secret) this should be possible:

Authenticating without the SoundCloud Connect Screen
If you simply need an access token for testing, and do not want to go through the connect flow, or if your app needs to access only public resources, you can use the OAuth Client Credentials Flow. An example of this kind of app would be an artist's website where you'll only be accessing their tracks, playlists, or user information. In these cases you may exchange a set of your client credentials for an access token.

Expected behaviour:

The users details and tracks should be returned.

Actual behaviour:

401 unauthorized response every time without any error message.

Lingua principale
JavaScript
Stelle
253
Fork
53
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di soundcloud/api

Tutte le issue di soundcloud/api

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.