HTTP 403 from Spotify API with message "Your client does not have permission to get URL ..."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
Country
United States
My Question or Issue
I'm using the Spotify API to develop an integration. I stopped working on it for a bit, and just started picking it back up today. Now, I get an HTTP 403 when making any request, with the error "Your client does not have permission to get URL ... from this server." (This is code that was working about a year ago.)
Even when making the most basic request from the "Request an access token" section of the "Getting started" guide, I get this error.
For example, for this request (client secret redacted on purpose):
curl -X POST "https://accounts.spotify.com/api/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=74945e5986c34168bc6231500f9dae05&client_secret=REDACTED"
I get this response:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Forbidden</h1>
<h2>Your client does not have permission to get URL <code>/api/token</code> from this server.</h2>
<h2></h2>
</body></html>
I tried making a new app in the developer dashboard, with a new Client ID and Client Secret, and am still running into the same issue.
Is it possible Spotify has banned my IP address? I can't think of another reason why this would be happening.
Edit: I tried making that exact same request from a different IP address, and it worked, so it really does seem like Spotify has banned my IP here. If someone from Spotify is able to help here, I can share the IP of my server with you over DM.
- Labels:
-
Possible Bug
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page