[GH-ISSUE #4] giving empty canvas #1

Closed
opened 2026-02-27 20:21:30 +03:00 by kerem · 8 comments
Owner

Originally created by @waynechirwa on GitHub (Sep 27, 2025).
Original GitHub issue: https://github.com/Paxsenix0/Spotify-Canvas-API/issues/4

its giving this empty return : {"canvasesList":[]}
i did put my SP DC key and i modified the code to show part of the SP DC so confirm its in there

PS C:\Users\blast\Desktop\New folder (2)\Spotify-Canvas-API> node index.js
[dotenv@17.2.2] injecting env (1) from .env -- tip: 📡 observe env with Radar: https://dotenvx.com/radar
SP_DC loaded: AQCQXEcKng... // this here conform my sp from ENV
Fetching updated TOTP secrets...
[dotenv@17.2.2] injecting env (0) from .env -- tip: 📡 observe env with Radar: https://dotenvx.com/radar
Listening on PORT: 3000
Running on local: http://localhost:3000
TOTP secrets updated to version 51

Originally created by @waynechirwa on GitHub (Sep 27, 2025). Original GitHub issue: https://github.com/Paxsenix0/Spotify-Canvas-API/issues/4 its giving this empty return : {"canvasesList":[]} i did put my SP DC key and i modified the code to show part of the SP DC so confirm its in there PS C:\Users\blast\Desktop\New folder (2)\Spotify-Canvas-API> node index.js [dotenv@17.2.2] injecting env (1) from .env -- tip: 📡 observe env with Radar: https://dotenvx.com/radar ✅ SP_DC loaded: AQCQXEcKng... // this here conform my sp from ENV Fetching updated TOTP secrets... [dotenv@17.2.2] injecting env (0) from .env -- tip: 📡 observe env with Radar: https://dotenvx.com/radar Listening on PORT: 3000 Running on local: http://localhost:3000 TOTP secrets updated to version 51
kerem closed this issue 2026-02-27 20:21:30 +03:00
Author
Owner

@Inzaniity commented on GitHub (Sep 27, 2025):

I just tested it and it worked fine.

Below is also the result using Postman
Image

C:\Program Files\nodejs\node.exe .\index.js
[dotenv@17.2.2] injecting env (1) from .env -- tip: 📡 version env with Radar: https://dotenvx.com/radar
Fetching updated TOTP secrets...
[dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️  write to custom object with { processEnv: myObject }
Listening on PORT:  3000
Running on local: http://localhost:3000
TOTP secrets updated to version 51
<!-- gh-comment-id:3341993502 --> @Inzaniity commented on GitHub (Sep 27, 2025): I just tested it and it worked fine. - I cloned the repo, added a .env file with `SP_DC="{YOUR_COOKIE}"` - Ran `index.js` using node - Using a test track id I get the data when I visit - [localhost:3000/api/canvas?trackId=3OHfY25tqY28d16oZczHc8](http://localhost:3000/api/canvas?trackId=3OHfY25tqY28d16oZczHc8) Below is also the result using Postman <img width="1074" height="621" alt="Image" src="https://github.com/user-attachments/assets/ad7c62e8-39d2-49cc-8dde-be505f8f1804" /> ``` C:\Program Files\nodejs\node.exe .\index.js [dotenv@17.2.2] injecting env (1) from .env -- tip: 📡 version env with Radar: https://dotenvx.com/radar Fetching updated TOTP secrets... [dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ write to custom object with { processEnv: myObject } Listening on PORT: 3000 Running on local: http://localhost:3000 TOTP secrets updated to version 51 ```
Author
Owner

@waynechirwa commented on GitHub (Sep 27, 2025):

Oky yours is working for me still empty canvas list idk does SP_DC key need to be for an account that is paid for spotify or it doesnt matter if its for a free account

this screen shot is for where i am getting the sp_dc key

Image

this is screenshot for my vs code with where there is sp dc

Image

this is my browser with request

Image

so tell me where i am getting wrong NB i use a free spotify account and i also dnt know if region plays role to affect these canvas

<!-- gh-comment-id:3342109621 --> @waynechirwa commented on GitHub (Sep 27, 2025): Oky yours is working for me still empty canvas list idk does SP_DC key need to be for an account that is paid for spotify or it doesnt matter if its for a free account this screen shot is for where i am getting the sp_dc key <img width="2132" height="1260" alt="Image" src="https://github.com/user-attachments/assets/ea4756be-cb5a-4ac4-b258-e4b2c6316493" /> this is screenshot for my vs code with where there is sp dc <img width="3798" height="2159" alt="Image" src="https://github.com/user-attachments/assets/c8ec8bec-0448-45b0-9379-0c569b01d56f" /> this is my browser with request <img width="3839" height="2159" alt="Image" src="https://github.com/user-attachments/assets/04cf7a22-fa0a-4a8d-b214-4161c5e9f9f2" /> so tell me where i am getting wrong NB i use a free spotify account and i also dnt know if region plays role to affect these canvas
Author
Owner

@Inzaniity commented on GitHub (Sep 27, 2025):

What I do to get the SP_DC cookie is open an incognito tab, log in with a burner account (doesn't need to be premium) and grab the cookie from there. Then just close the browser window.

Region shouldn't matter as long as you can reach Spotify itself.

<!-- gh-comment-id:3342120099 --> @Inzaniity commented on GitHub (Sep 27, 2025): What I do to get the SP_DC cookie is open an incognito tab, log in with a burner account (doesn't need to be premium) and grab the cookie from there. Then just close the browser window. Region shouldn't matter as long as you can reach Spotify itself.
Author
Owner

@waynechirwa commented on GitHub (Sep 28, 2025):

i did all that where am i getting it wrong i am still getting all empty i dnt lnow wat to do now i provided screen shots show me where i am getting wrong

i will provide my sp dc key

SP_DC="AQB9qnAb4heKc2Fx2BJcjPmdwDhC_OjQCxHtKuq85NTP1B1JkMH2RPSciiPuHYX3rX5zm51ckP19KlBUL_sDk9mDq_4BsNuT6JkghQZNIKag0Jce2ct1slBbjSfVxqrX55XqXWFee2rqUW1nSVAoTL3fEw5wot_sKEYgx7UDUMhPxaMqVWHsz2EFwwZGiEWeW4jEqLxuSMfvlDeWSQ"

<!-- gh-comment-id:3343942031 --> @waynechirwa commented on GitHub (Sep 28, 2025): i did all that where am i getting it wrong i am still getting all empty i dnt lnow wat to do now i provided screen shots show me where i am getting wrong i will provide my sp dc key SP_DC="AQB9qnAb4heKc2Fx2BJcjPmdwDhC_OjQCxHtKuq85NTP1B1JkMH2RPSciiPuHYX3rX5zm51ckP19KlBUL_sDk9mDq_4BsNuT6JkghQZNIKag0Jce2ct1slBbjSfVxqrX55XqXWFee2rqUW1nSVAoTL3fEw5wot_sKEYgx7UDUMhPxaMqVWHsz2EFwwZGiEWeW4jEqLxuSMfvlDeWSQ"
Author
Owner

@waynechirwa commented on GitHub (Sep 28, 2025):

what else data should i provide for you to see where i am getting wrong i tried to open ignito in chrome i could not see the sp dc key its not showing

PS C:\Users\blast\Desktop\New folder (2)\Spotify-Canvas-API> node index.js [dotenv@17.2.2] injecting env (1) from .env -- tip: ⚙️ suppress all logs with { quiet: true } AQB9qnAb4heKc2Fx2BJcjPmdwDhC_OjQCxHtKuq85NTP1B1JkMH2RPSciiPuHYX3rX5zm51ckP19KlBUL_sDk9mDq_4BsNuT6JkghQZNIKag0Jce2ct1slBbjSfVxqrX55XqXWFee2rqUW1nSVAoTL3fEw5wot_sKEYgx7UDUMhPxaMqVWHsz2EFwwZGiEWeW4jEqLxuSMfvlDeWSQ Fetching updated TOTP secrets... [dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ write to custom object with { processEnv: myObject } Listening on PORT: 3000 Running on local: http://localhost:3000 TOTP secrets updated to version 52

still getting the empty canvas and its really annoying since its working on your side . URL below

http://localhost:3000/api/canvas?trackId=3OHfY25tqY28d16oZczHc8

What I do to get the SP_DC cookie is open an incognito tab, log in with a burner account (doesn't need to be premium) and grab the cookie from there. Then just close the browser window.

Region shouldn't matter as long as you can reach Spotify itself.

<!-- gh-comment-id:3344255825 --> @waynechirwa commented on GitHub (Sep 28, 2025): what else data should i provide for you to see where i am getting wrong i tried to open ignito in chrome i could not see the sp dc key its not showing `PS C:\Users\blast\Desktop\New folder (2)\Spotify-Canvas-API> node index.js [dotenv@17.2.2] injecting env (1) from .env -- tip: ⚙️ suppress all logs with { quiet: true } AQB9qnAb4heKc2Fx2BJcjPmdwDhC_OjQCxHtKuq85NTP1B1JkMH2RPSciiPuHYX3rX5zm51ckP19KlBUL_sDk9mDq_4BsNuT6JkghQZNIKag0Jce2ct1slBbjSfVxqrX55XqXWFee2rqUW1nSVAoTL3fEw5wot_sKEYgx7UDUMhPxaMqVWHsz2EFwwZGiEWeW4jEqLxuSMfvlDeWSQ Fetching updated TOTP secrets... [dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ write to custom object with { processEnv: myObject } Listening on PORT: 3000 Running on local: http://localhost:3000 TOTP secrets updated to version 52` still getting the empty canvas and its really annoying since its working on your side . URL below `http://localhost:3000/api/canvas?trackId=3OHfY25tqY28d16oZczHc8` > What I do to get the SP_DC cookie is open an incognito tab, log in with a burner account (doesn't need to be premium) and grab the cookie from there. Then just close the browser window. > > Region shouldn't matter as long as you can reach Spotify itself.
Author
Owner

@waynechirwa commented on GitHub (Sep 28, 2025):

oky i now managed to do it its now working it was because of my region or place so i used VPN to get SP_DC key for Region in USA Virginia and refreshed and got a key from there and now its now working thanks man great work

<!-- gh-comment-id:3344257647 --> @waynechirwa commented on GitHub (Sep 28, 2025): oky i now managed to do it its now working it was because of my region or place so i used VPN to get SP_DC key for Region in USA Virginia and refreshed and got a key from there and now its now working thanks man great work
Author
Owner

@Paxsenix0 commented on GitHub (Sep 30, 2025):

Sorry, I missed the notification on this issue! Since it's already resolved, I'll close it.

Feel free to open it if you have any questions.

<!-- gh-comment-id:3349598914 --> @Paxsenix0 commented on GitHub (Sep 30, 2025): Sorry, I missed the notification on this issue! Since it's already resolved, I'll close it. Feel free to open it if you have any questions.
Author
Owner

@Inzaniity commented on GitHub (Sep 30, 2025):

oky i now managed to do it its now working it was because of my region or place so i used VPN to get SP_DC key for Region in USA Virginia and refreshed and got a key from there and now its now working thanks man great work

May I ask which region are you in?

<!-- gh-comment-id:3351856740 --> @Inzaniity commented on GitHub (Sep 30, 2025): > oky i now managed to do it its now working it was because of my region or place so i used VPN to get SP_DC key for Region in USA Virginia and refreshed and got a key from there and now its now working thanks man great work May I ask which region are you in?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Spotify-Canvas-API#1
No description provided.