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

403: Your client does not have permission to get URL /api/token from this server.

403: Your client does not have permission to get URL /api/token from this server.

Plan

Premium

 

Country

NL (account), server is in DE

 

Device

Server (client_credentials) via nodejs

 

Operating System

Ubuntu 22.04

 

My Question or Issue

Im connecting my app locally on my dev machine and all goes fine. However when i copy all content to my production server im getting 403 responses:
Your client does not have permission to get URL /api/token from this server.

 

Network info:

IP: 116.203.246.165 / 2a01:4f8:1c1a:fdd9::/64

 

App:

1ffd8fb2077b4119aabba0c909d03d32

 

Reply
4 Replies

Hi @HardstyleTop40

Did you update the Redirect URI in your app and add it to the Dashboard of your app?

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Yes there is a redirect uri specified but its a client_credential flow that does ofc does not consume a callback in its oauth flow?

 

The funny thing is, what i request it manually via the CLI all goes fine:

curl -X POST "https://accounts.spotify.com/api/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=1ffd8fb2077b4119aabba0c909d03d32&client_secret=***"

 

So no clue what Spotify is complaining about actually on the client. It seems that my outbound traffic towards Spotify is blocked? Other service are accessible without any issues. 

The request is made via a docker container on my host machine.

I managed to find a workaround. Added "network_mode: host" (linux only) to my compose.yml

 

However this gives all kinds of weird unwanted sidefx so i guess this is something Spotify should handle here?

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