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

An error occurred while processing the Spotify callback.

An error occurred while processing the Spotify callback.

Plan

Free

My Question or Issue
I am able to redirect to spotify after clicking allow, I am getting 

{"message":"An error occurred while processing the Spotify callback.","success":false,"error":{"code":"ERR_NON_2XX_3XX_RESPONSE","timings":{"start":1747979940022,"socket":1747979940022,"lookup":1747979940029,"connect":1747979940113,"secureConnect":1747979940256,"upload":1747979940257,"response":1747979940436,"end":1747979940437,"phases":{"wait":0,"dns":7,"tcp":84,"tls":143,"request":1,"firstByte":179,"download":1,"total":415}},"name":"HTTPError","options":{"agent":{},"decompress":true,"timeout":{},"prefixUrl":"","body":"grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A3333%2Fspotify%2Fcallback&client_id=&client_secret=&code=AQDCUsumm1p8KCS_EObi_otfIfjO1fe_DPvtfpNa76KnPlq3XJBGgteo4J90TiVVCglPnVuAHeOH-jyMXncLgeR59m67-Z6H0sOynLDHCvpE-AoPrCBBLkQI8uNMXePHzkk8HK3leG0N3jFY_fD957d1UKmFnzhYYFnxQCmD7awfrO5amQuXcr0UQjPyDfO0tqrZ4yBw38Kk8hxhiuM6lBvmQKZJFk3t5oECBRNtifehPhFDGWK85PYU2a8Y","ignoreInvalidCookies":false,"context":{},"hooks":{"init":[],"beforeRequest":[],"beforeError":[],"beforeRedirect":[],"beforeRetry":[],"afterResponse":[]},"followRedirect":true,"maxRedirects":10,"throwHttpErrors":true,"username":"","password":"","http2":false,"allowGetBody":false,"headers":{"user-agent":"got ()","content-type":"application/x-www-form-urlencoded","accept":"application/json","content-length":"441","accept-encoding":"gzip, deflate, br"},"methodRewriting":false,"retry":{"limit":2,"methods":["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],"statusCodes":[408,413,429,500,502,503,504,521,522,524],"errorCodes":["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],"backoffLimit":null,"noise":100},"method":"POST","cacheOptions":{},"https":{},"resolveBodyOnly":false,"isStream":false,"responseType":"text","url":"https://accounts.spotify.com/api/token","pagination":{"countLimit":null,"backoff":0,"requestLimit":10000,"stackAllItems":false},"setHost":true,"enableUnixSockets":false}}}

Help me on this asap 

Reply
9 Replies

Hi @Puja2 

You cannot use localhost anymore. You should use 127.0.0.1 instead. You can read more about this change on this page.

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.

Hi again @Puja2 

Could you tell me how you got this error message. Which app were you using?

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.

Its working now.. 

Had some queries, when we need to test in staging I need to add the staging link in the redirect uri's in both spotify developer and in code?
ans also, in the free plan how much user will be able to access the spotify?

Hi @Puja2 

 

I'm glad to hear it's working now!

 

To keep everything running as expected, make sure the redirect URI in your code matches exactly with the one registered in your app's dashboard. Also, please note that a Spotify Premium subscription is separate from Spotify for Developers.

 

If you're planning to allow multiple users to access your app, be sure it complies with the Spotify Developer Policy, Terms, and Design & Branding Guidelines  before submitting a Quota Extension request.

 

I hope this clears things up! If you have any further questions, the Spotify Community is always here to help.

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.

I am planing to build customer facing application, where the user case is for the users to log in to the app and connect to spotify.

Do I need to register to something, or how will be the process

I need to fetch the top tracks of the user, have implemented the redirect and callback uri's. But the gettop tracks and all are throwing 403 error

Hi @Puja2 

This is explained on this page.

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.

Also, currently my spotify devloper portal does not have a tab as Quota Extension Request. I only have Basic Information and User Management

Screenshot 2025-05-28 at 12.25.34โ€ฏAM.png

As shown in the link the previous guy posted, you cannot request extended as an individual dev after may 15th

postinferno_0-1748413364038.png

 

Suggested posts

Type a product name