[GH-ISSUE #642] Couldn't read cache at: .cache #384

Closed
opened 2026-02-27 23:22:19 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/642

Hello

I want to authenticate users with Spotify in order to access their saved tracks. I've been following example form this repo README, I got the authentication process to run on a localhost Flask server. However every time I run the app my console throws me this warning : "Couldn't read cache at: .cache" \n "Enter the URL you were redirected to:"
If I copy and paste the URL from browser I can get this working and it does actually create .cache file in my directory. In production users won't be able to copy and paste a URL into console, this has to happen automatically.
I am running on Ubuntu 20.04, Python3.7 and latest Spotipy. My Spotify developer credentials are all set up.

Help greatly appreciated :)

Originally created by @ghost on GitHub (Feb 18, 2021). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/642 Hello I want to authenticate users with Spotify in order to access their saved tracks. I've been following example form this repo README, I got the authentication process to run on a localhost Flask server. However every time I run the app my console throws me this warning : "Couldn't read cache at: .cache" \n "Enter the URL you were redirected to:" If I copy and paste the URL from browser I can get this working and it does actually create .cache file in my directory. In production users won't be able to copy and paste a URL into console, this has to happen automatically. I am running on Ubuntu 20.04, Python3.7 and latest Spotipy. My Spotify developer credentials are all set up. Help greatly appreciated :)
kerem 2026-02-27 23:22:19 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@stephanebruckert commented on GitHub (Feb 19, 2021):

You want to handle any amount of user on a server, so you are looking to integrate Spotipy in an API

<!-- gh-comment-id:782152657 --> @stephanebruckert commented on GitHub (Feb 19, 2021): You want to handle any amount of user on a server, so you are looking to [integrate Spotipy in an API](https://github.com/plamere/spotipy/blob/master/FAQ.md#how-to-use-spotipy-in-an-api)
Sign in to join this conversation.
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/spotipy#384
No description provided.