Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Web Player Api view connection failed

Web Player Api view connection failed

Plan: Premium
Country: Netherlands

Device: PC
Operating System: Windows 10

Hello, can you please help me? I can't get the Spotify Web Player to work using the Spotify API.

  • I have a Premium account.
  • I have enabled the required settings on the Spotify Developer Dashboard.
  • I manually retrieve the bearer token through a request with the correct scopes:
    { "access_token": "BQC8Cy8ZxemZjKxKIvJoQ3ljsYF2nXXEb16AYpwMiWTxoPPbltn4O9PBGY6bHN8xVNRIHYk2q787kC0MdKV7FrfDIveNhupautaQaZQHaOCOXzdQPsD6Olpqo30fz3ZX-ikMcsPG_mDi644LlKmMIwQ0zwxSa582tg", "token_type": "Bearer", "expires_in": 3600, "scope": "streaming user-modify-playback-state user-library-read user-library-modify user-read-playback-state user-read-email user-read-private" }
  • I use the HTML code from the official guide and manually insert the token into the code.

However, I still encounter an error:

index.js:3 WebSocket connection to 'wss://gew4-dealer.spotify.com/?access_token=BQC8Cy8ZxemZjKxKIvJoQ3ljsYF2nXXEb16AYpwMiWTxoPPbltn4O9PBGY6bHN8xVNRIHYk2q787kC0MdKV7FrfDIveNhupautaQaZQHaOCOXzdQPsD6Olpqo30fz3ZX-ikMcsPG_mDi644LlKmMIwQ0zwxSa582tg' failed

What am I doing wrong?

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random