Closed jeusch8 closed 4 months ago
Hello! Could you try only setting one redirect uri? The redirect uri being the endpoint of your backend followed by the suffix you set.
Hello, thank you for such a prompt response. Set it to just the one and still getting the error. I did hit save just to cover all your bases.
I'm also curious why your swagger configuration seems to target the container port directly and you still expose them in the docker-compose.
Good point, I had those for the local IP and just never changed them, I commented them out and removed the containers and then redeployed them. That doesnt seem to have changed anything either. Still getting that illegal redirect uri. What is confusing is that the server is reachable thru the reverse proxy, and so is the client thru spotifystats subdomain, Im just confused why when it breaks when i use my reverse proxy vs when i just use it locally over my desktop ip and the headless server ip
services: server: image: yooooomi/your_spotify_server container_name: spotifyserver links:
It's actually weird, I don't see anything wrong with your configuration. Could you please try deleting and recreating your app? Also please be sure to hit the save button at the bottom of the popup when adding the callbacks for the first time.
I just nuked the entire setup, deleted the images, deleted the app, everything and rebuilt it with the new id and secret, hit yes and all that, and its still not working for some reason. Even changed some of the spaces to make sure that the space was messing things up and its still not working. Im very confused honestly. I literally had it working locally, but the second its reverse proxied with swag it doesnt work?
services: server: image: yooooomi/your_spotify_server container_name: spotifyserver links:
Oh? It just started working after I removed it and added it a bunch of times. Ill do a bit more investigating why it just started working.
Yes it can be capricious sometimes. Feel free to close if it disappeared forever :)
For anyone that looks at this issue, I have no idea what fixed it, I changed the redirect uri between /oauth/spotify/callback to /oauth/spotify/callback/ and then back again to /oauth/spotify/callback and that somehow fixed it after deleting the spotify app itself, deleted the docker containers, deleted all images related to this project, deleted the mongo db files itself in the console, and recreated everything. I assume it was something to do with how it was used locally then reversed proxied. Hopefully this helps. Removed some domain names to stay private.
Hello,
Recently Ive had to rebuild this and it broke again. Ive tried so many different combinations of what I posted before, Im genuinely at a loss.
server: image: yooooomi/your_spotify_server container_name: your-spotify-server links:
restart: unless-stopped
web: image: yooooomi/your_spotify_client container_name: your-spotify-web environment:
mongo: container_name: mongodb image: mongo:6 environment:
These are my swag proxies, completely unchanged. https://github.com/linuxserver/reverse-proxy-confs/blob/master/your-spotify-api.subdomain.conf.sample https://github.com/linuxserver/reverse-proxy-confs/blob/master/your-spotify.subdomain.conf.sample
Seems to be a cache issue on browser, clearing cache seems to have fixed the problem, the one thing I did not do. Apologies for the bump.
Describe the bug
When trying to sign in to your spotify when reversed proxied, an Illegal redirect uri occurs. Does not occur when using local ips. The first link works, but when I go to hit sign in thats when the redirect fails.
Expected behavior
Page loads into sign in to allow users to sign into the app.
Additional context Browser is Firefox, OS Win10
Docker Compose Excerpt
services: server: image: yooooomi/your_spotify_server container_name: spotifyserver ports:
mongo: container_name: mongo image: mongo:4.4.8 volumes:
SWAG Configs (sorry these arent wrapping correctly) ` server { listen 443 ssl; listen [::]:443 ssl;
} `
`server { listen 443 ssl; listen [::]:443 ssl;
} ` Screenshots
If applicable, add screenshots to help explain your problem.
Domain = whatever your domain, was changed for privacy