mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #1025] JSONDecodeError when trying to use auth code flow on a headless device #610
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#610
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 @pvilimas on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1025
I'm doing a project on my headless raspberry pi over SSH. When I run this script on my main PC, it outputs as expected my most recently added songs. When I run it on the pi, it always gives a JSONDecodeError (full error below). I've tried doing this a couple different ways but like I said my device is headless so I need to somehow authenticate on startup and without opening a browser window.
Script:
Error:
@hansmbakker commented on GitHub (Sep 9, 2023):
There is a request for allowing the Device Authorization Grant flow on the Spotify forum - it is very useful for embedded usecases like a remote control.