mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #815] spotipy spins up a webserver that throws [Errno 48] Address already in use #507
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#507
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 @ckahle33 on GitHub (May 31, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/815
I am using Spotipy in a Django application, and it was working fine for some time (likely the token age time) but now it is trying to spin up a development server on 120.0.0.1:8090 (as mentioned in app.py example), which is where Django is running. lsof indeed shows multiple listeners on that port:
This also happens when using port 8000 and 5000. How can I prevent the library from trying to spin up a server on the same port as Django?
Django Code / view functions
Apologies if I am missing something. Thank you.
@ckahle33 commented on GitHub (Jun 1, 2022):
Looking at the stack trace, if
get_access_token()is not manually called with the code from the callback query params, spotipy will attempt to spin up the server for you. Here is the complete working code in a Django context: