mirror of
https://github.com/Paxsenix0/Spotify-Canvas-API.git
synced 2026-04-27 08:15:52 +03:00
[GH-ISSUE #1] 400 Status Code #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Spotify-Canvas-API#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JoeMama54 on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/Paxsenix0/Spotify-Canvas-API/issues/1
It appears that open.spotify.com/api/token is now returning a 400 bad request code and makes the webserver unusable.
@PeterStark000 commented on GitHub (Jul 1, 2025):
Same problem!
@Paxsenix0 commented on GitHub (Jul 1, 2025):
@JoeMama54 You're right, something has changed. I'll investigate this issue.
@Paxsenix0 commented on GitHub (Jul 2, 2025):
Let me know if the issue still persists! :)
@JoeMama54 commented on GitHub (Jul 2, 2025):
With the new patch I get a Unauthorized 401 status code now. @Paxsenix0
@JoeMama54 commented on GitHub (Jul 2, 2025):
Nevermind! Figured out why. dotenv was doing something weird.
@Inzaniity commented on GitHub (Jul 9, 2025):
Spotify seems to have changed something again, I'm getting 400 and tried everything.
@JoeMama54 commented on GitHub (Jul 9, 2025):
@Inzaniity

It is still up and working for me
I would try updating your SP_DC and pulling the latest changes.
@Inzaniity commented on GitHub (Jul 9, 2025):
I created a new SP_DC, pulled the latest code and tried it but no chance I always get 400
Canvas request error: AxiosError: Request failed with status code 400Tried multiple SP_DC cookies but never works :(
From what I can tell it fails to get the token and therefore does not even try for the canvas
@JoeMama54 commented on GitHub (Jul 9, 2025):
How are you setting your SP_DC? I had this issue too and I needed to put
in spotifyAuthService.js for mine to work. @Inzaniity
@Inzaniity commented on GitHub (Jul 9, 2025):
Yeah I saw that you had trouble, but even putting it directly into the spotifyAuthService.js is not working
What I observed so far is that I have a difference between localTime and serverTime but I think that is expected.
Localtime 1752096650243
Servertime 1752096649000
Difference 1243
On this code it errors
But the SP_DC is in the request itself
@Inzaniity commented on GitHub (Jul 9, 2025):
I got it working sorry for the trouble. I don't know why but cloning the repo again helped.
@Paxsenix0 commented on GitHub (Jul 10, 2025):
Hello @Inzaniity Sorry for the inconvenience!
2 days ago, i pushed a commit due to a changed totp secret, but didn't publish a release.
@Inzaniity commented on GitHub (Jul 11, 2025):
Hate to post here again but I'm getting 400 and 401 again, tried new SP_DC cookies etc. Anyone else experiencing this? Was able to grab 46k (running an app with thousands of users, maybe should reconsider the way I grab canvases) canvas urls in the past 2 days but now I'm stuck again.
@JoeMama54 commented on GitHub (Jul 11, 2025):
I am also getting a 401 currently.
@Inzaniity commented on GitHub (Jul 11, 2025):
Might be worth reopening? Or make a new one?
@Paxsenix0 commented on GitHub (Jul 12, 2025):
@Inzaniity @JoeMama54 I'm thinking that Spotify often changes their secrets totp and increases totpVer.