YourSpotify Widget API Connection Issue #5935
-
DescriptionI'm trying to set up a YourSpotify widget on my homepage, but I'm getting an "API Error: Invalid data" response. The error suggests I need to enable JavaScript, but JavaScript is already enabled in my browser. The API is returning HTML content instead of the expected JSON data. homepage versionv1.6.0 Installation methodDocker ConfigurationYourSpotify URL: https://***.duckdns.org:60443/
API Endpoint Attempted: https://***.duckdns.org:60443/spotify/songs_per?start=2025-10-04T16%3A10%3A42.991Z&timeSplit=all&token=***
- MediaWidgets:
- YourSpotify:
icon: your-spotify.png
href: https://***.duckdns.org:60443
description: Spotify statistics
widget:
type: yourspotify
url: https://***.duckdns.org:60443/api/ # if using lsio image, add /api/
key: *****
interval: month # optional, defaults to weekContainer LogsNo response Browser LogsTroubleshooting |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Please follow and post the actual troubleshooting steps in the template Here is the template, as a reminder: |
Beta Was this translation helpful? Give feedback.
-
|
I was having the same issue and error when using the CLIENT_ENDPOINT (default port 8080) environment variable defined in your_spotify docker compose file as the widget URL, changed the URL to API_ENDPOINT(default port 3000) and now the widget is working. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah this is the most likely issue. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
I was having the same issue and error when using the CLIENT_ENDPOINT (default port 8080) environment variable defined in your_spotify docker compose file as the widget URL, changed the URL to API_ENDPOINT(default port 3000) and now the widget is working.