mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[GH-ISSUE #35] I've been having a persistent issue, and I don't know how to fix it #20
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#20
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 @RhowindMacDermott on GitHub (Jun 28, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/35
Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
:5000/api/playlists:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
@Aran404 commented on GitHub (Jun 30, 2025):
Could you provide code?
@RhowindMacDermott commented on GitHub (Jul 1, 2025):
Sorry I've been super busy and tired going to sleep at 2 AM in the morning and waking up at 2 PM here's the code
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
import traceback
from flask import Flask, render_template, request, jsonify
from spotapi.login import Login, Config, LoginError # Import LoginError
from spotapi.playlist import PrivatePlaylist
from spotapi.http.request import TLSClient
from spotapi.utils.saver import JSONSaver # Import JSONSaver
from spotapi.utils.logger import NoopLogger # Import NoopLogger
from spotapi.types.interfaces import CaptchaProtocol # Import CaptchaProtocol
Define a dummy solver that does nothing but returns a non-empty string
class DummySolver(CaptchaProtocol):
def init(self, *args, **kwargs):
pass
app = Flask(name)
@app.route('/')
def index():
return render_template('index.html')
def get_login_instance(auth_data, auth_method):
cfg = Config(logger=NoopLogger())
cfg.client = TLSClient("chrome_120", "", auto_retries=3)
cfg.saver = JSONSaver()
@app.route('/api/playlists', methods=['POST'])
def get_playlists():
auth_data = request.json
auth_method = auth_data.get('auth_method')
@app.route('/api/recommendations', methods=['POST'])
def get_recommendations():
auth_data = request.json
auth_method = auth_data.get('auth_method')
playlist_uri = auth_data.get('playlist_uri')
if name == 'main':
app.run(debug=True)
@RhowindMacDermott commented on GitHub (Jul 1, 2025):
Here's the code import traceback
from flask import Flask, render_template, request, jsonify
from spotapi.login import Login, Config, LoginError # Import LoginError
from spotapi.playlist import PrivatePlaylist
from spotapi.http.request import TLSClient
from spotapi.utils.saver import JSONSaver # Import JSONSaver
from spotapi.utils.logger import NoopLogger # Import NoopLogger
from spotapi.types.interfaces import CaptchaProtocol # Import CaptchaProtocol
Define a dummy solver that does nothing but returns a non-empty string
class DummySolver(CaptchaProtocol):
def init(self, *args, **kwargs):
pass
app = Flask(name)
@app.route('/')
def index():
return render_template('index.html')
def get_login_instance(auth_data, auth_method):
cfg = Config(logger=NoopLogger())
cfg.client = TLSClient("chrome_120", "", auto_retries=3)
cfg.saver = JSONSaver()
@app.route('/api/playlists', methods=['POST'])
def get_playlists():
auth_data = request.json
auth_method = auth_data.get('auth_method')
@app.route('/api/recommendations', methods=['POST'])
def get_recommendations():
auth_data = request.json
auth_method = auth_data.get('auth_method')
playlist_uri = auth_data.get('playlist_uri')
if name == 'main':
app.run(debug=True)
@RhowindMacDermott commented on GitHub (Jul 1, 2025):
I accidetinally hit close