-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web does nothing when import "Extended Streaming History" #398
Comments
Hi Kevin, CORS (Cross-Origin Resource-Sharing) is blocking the requests. Are the request send from one subdomain to another subdomain? I had the same issue with the API and frontend, so I had to add an environment variable to the docker-compose:
This allows both spotify.example.com and spotify-api.example.com to "communicate" in a sense. ofcourse replace those with your actual subdomains. Hope this helps |
I'm pretty sure CORS is not the main issue here. Everything else in your installation works, right? You can log in and look at the data in the dashboard? In that case CORS is already configured correctly. It should work out of the box without additional configuration for most deployments. I assume the root cause is the 413 "Payload Too Large" error. CORS might not work properly as the request is already blocked/dropped because the request exceeds the size limit. This in itself might be worth looking into, but I suspect this is not the root cause. I think the current code in YourSpotify limits each individual file to 20 MB so it should work: your_spotify/apps/server/src/routes/importer.ts Lines 20 to 26 in 7f7f884
Are you using any kind of reverse proxy or web server in front of YourSpotify that might restrict the file size further? |
Hello, are you using linuxserver image? |
Your mongo does not seem well am I right? |
It's not upadated to the latest version, but does not interfere. |
I tested to upload the file with only one song, the JSON file only weighs 1kb and upload succesfully. I think there is a limitation of the file weight or the ammount of songs you can import. I hope I can help you! |
If you're using nginx, there is a default limit that you have to override for the api reverse proxy. |
Do you know how to do that? |
There is a parameter you can add to the location definition of your api: https://stackoverflow.com/a/37916740/5641146 |
Thank you, It works! |
Hi, I received my Extended Streaming History from Spotify, 8 JSON files.
But when I select the option to import the Extended History, 1 by 1 or the 8 files all together does nothing, there is a micro refresh but nothing happens, and a green letters told me "Everything looks fine for the import to work".
A few days ago I import the Account Data and everithing was great.
Here is the error:
What I'm doing wrong? Or what's the problem?
Thanks!
The text was updated successfully, but these errors were encountered: