Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Having issues streaming certain tracks with SDK3.0

Abierto
#37 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
api

Línea de trabajo

Start with the linked playSong() snippet and CodePen, then compare the failing and working track URLs under SDK3.0. Reproduce the Safari request and inspect the reported Accept-Encoding/CORS error to determine whether the problem is in the SDK request or SoundCloud's response. Done means a confirmed cause with an actionable SDK fix or a documented external limitation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi,
after switching from SDK2.0 and using only SC.stream() to SDK3.0 and using resolve to find the ID, certain tracks won't play.

No error messages given, they simply will not play.

Examples of tracks that are not playing:
https://soundcloud.com/dreamchasersrecords/meek-mill-pray-for-em
https://soundcloud.com/gangstagibbs/hot-boys-produced-by-dupri-of-league-of-starz

Examples of tracks that are playing fine:
https://soundcloud.com/kanyewest/nomorepartiesinla
https://soundcloud.com/amirobe/amir-obe-before-the-vomit-produced-by-oz

They were all playing when I was using SDK2.0 and supplying the ID of the song,

Any ideas? Very frustrating!
Thanks.

My playSong() function

Edit:
Also made a small codepen showing the issue: http://codepen.io/mariussunde/pen/mVxKPO
Last track does not work

Edit 2:
Safari also gives me these errors;

[Error] Failed to load resource: Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers. (242557602.json, line 0)

[Error] XMLHttpRequest cannot load https://api.soundcloud.com/tracks/242557602.json?client_id=9e05e349251475056d1bc81acbf08c71&secret_token=tracks. Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers.

Now my question here is, is this something I can fix on my own server, or does the issue lie with soundcloud?

Lenguaje dominante
JavaScript
Estrellas
388
Forks
76
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de soundcloud/soundcloud-javascript

Todos los issues de soundcloud/soundcloud-javascript

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.