aw-watcher-spotify icon indicating copy to clipboard operation
aw-watcher-spotify copied to clipboard

Couldn't write token to cache

Open anghenfil opened this issue 10 months ago • 7 comments

Hey,

after configuring and starting aw-watcher-spotify, I get the error WARNING:spotipy.cache_handler:Couldn't write token to cache at: .cache-anghenfil

And when playing a song the it results in a 403 Client Error: Forbidden for url error.

Best anghenfil

anghenfil avatar Jan 06 '25 00:01 anghenfil

I'm getting the same error. Did you ever manage to fix it?

Motaphe avatar Mar 31 '25 09:03 Motaphe

What's your OS?

0xbrayo avatar Mar 31 '25 14:03 0xbrayo

I'm on a Mac Mini M4 (base model)

Motaphe avatar Apr 01 '25 00:04 Motaphe

Sounds like a Spotipy error, had issues similar to this one years back on linux. Try changing the spotipy version in the pyproject.toml,

spotipy = "^2.25.1"

and poetry install and run the code again.

0xbrayo avatar Apr 01 '25 14:04 0xbrayo

thanks for the advise but i already had spotipy 2.25.1 installed! I'm still having the issue.

Motaphe avatar Apr 01 '25 23:04 Motaphe

I installed the watcher, I can replicate this too. I believe Spotify recently updated their API, I'll check into this. If I fix it I'll update the issue, it's actually related to the error 403 and not the cache, spotipy still runs despite not writing the cache.

0xbrayo avatar Apr 02 '25 11:04 0xbrayo

I would really appreciate it! I haven't gotten the change to look into this myself.

Motaphe avatar Apr 03 '25 02:04 Motaphe