Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.82k stars 113 forks source link

Cannot login #222

Closed Jayy001 closed 1 year ago

Jayy001 commented 1 year ago

Describe the bug

When I go to login, the /callback just returns ERR_CONNECTION_REFUSED

Expected behavior

To be able to login

Additional context

version: "3"

services:
  server:
    image: yooooomi/your_spotify_server
    restart: always
    ports:
      - "8070:8080"
    links:
      - mongo
    depends_on:
      - mongo
    environment:
      API_ENDPOINT: http://192.168.0.137:8070 # This MUST be included as a valid URL in the spotify dashboard
      CLIENT_ENDPOINT: http://192.168.0.137:3000
      SPOTIFY_PUBLIC: xyz
      SPOTIFY_SECRET: xyz
      CORS: all # "all" if you want to allow every origin

  mongo:
    container_name: mongo
    image: mongo:4.4.8
    volumes:
      - /mnt/storage/data/spotify:/data/db

  web:
    image: yooooomi/your_spotify_client
    restart: always
    ports:
      - "3000:3000"
    environment:
      API_ENDPOINT: http://192.168.0.137:8070
Setting API Endpoint to 'http://192.168.0.137:8070'
 WARN  Checking for updates failed (use `--debug` to see full error)
 INFO  Accepting connections at http://0.0.0.0:3000
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 GET /
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 Returned 304 in 57 ms
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 GET /variables.js
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 GET /static/js/main.bf85c65a.js
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 Returned 304 in 6 ms
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 Returned 304 in 5 ms
 HTTP  4/8/2023 3:07:02 PM 192.168.0.135 Returned 304 in 16 ms
 HTTP  4/8/2023 3:07:13 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css
 HTTP  4/8/2023 3:07:13 PM 192.168.0.135 Returned 304 in 4 ms
 HTTP  4/8/2023 3:07:13 PM 192.168.0.135 GET /manifest.json
 HTTP  4/8/2023 3:07:13 PM 192.168.0.135 Returned 304 in 3 ms
 HTTP  4/8/2023 3:07:14 PM 192.168.0.135 GET /static/js/main.bf85c65a.js.map
 HTTP  4/8/2023 3:07:14 PM 192.168.0.135 Returned 200 in 39 ms
 HTTP  4/8/2023 3:07:14 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css.map
 HTTP  4/8/2023 3:07:14 PM 192.168.0.135 Returned 200 in 6 ms
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 GET /login
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 Returned 304 in 3 ms
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 GET /variables.js
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 Returned 304 in 2 ms
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 GET /static/js/main.bf85c65a.js
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 Returned 304 in 2 ms
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 Returned 304 in 2 ms
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css.map
 HTTP  4/8/2023 3:07:27 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:07:28 PM 192.168.0.135 GET /static/js/main.bf85c65a.js.map
 HTTP  4/8/2023 3:07:28 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:07:28 PM 192.168.0.135 GET /favicon.ico
 HTTP  4/8/2023 3:07:28 PM 192.168.0.135 Returned 304 in 3 ms
 HTTP  4/8/2023 3:07:29 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css
 HTTP  4/8/2023 3:07:29 PM 192.168.0.135 Returned 304 in 2 ms
 HTTP  4/8/2023 3:07:29 PM 192.168.0.135 GET /manifest.json
 HTTP  4/8/2023 3:07:29 PM 192.168.0.135 Returned 304 in 1 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /favicon.ico
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /variables.js
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /static/js/main.bf85c65a.js
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 3 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 3 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /favicon.ico
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 200 in 1 ms
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 GET /favicon.ico
 HTTP  4/8/2023 3:08:45 PM 192.168.0.135 Returned 304 in 2 ms
 HTTP  4/8/2023 3:09:53 PM 192.168.0.135 GET /static/css/main.7a14ab5f.css.map
 HTTP  4/8/2023 3:09:53 PM 192.168.0.135 Returned 200 in 2 ms
 HTTP  4/8/2023 3:09:53 PM 192.168.0.135 GET /static/js/main.bf85c65a.js.map
 HTTP  4/8/2023 3:09:53 PM 192.168.0.135 Returned 200 in 5 ms
$ node lib/bin/www
[info]  Trying to connect to database at mongodb://mongo:27017/your_spotify
[info]  Connected to database !
[info]  Checking database...
[info]  Starting loop for 1 users
[info]  Refreshing songs for Jake

Screenshots image image

Shared link

If you don't mind, you can add a Shared link to this issue by clicking Share this page on your YourSpotify application so that I can identify the issue quicker.

image

I had no issues with it earlier, was working fine perfectly - just tried it today and it refuses to work...no helpful logs either that I was able to use

Yooooomi commented 1 year ago

Hello! It's weird, your configuration has no issues. Maybe the device you're hosting the application on changed its local ip, which is not 192.168.0.137 anymore.

Jayy001 commented 1 year ago

Hey there, thanks for the quick reply! Looking into this more, I believe that this is an issue with my own network and not with your software. I've been messing around with self-hosted DNS and DHCP servers as well as some other networking hardware which is most likely what's causing the issues. I replicated the same setup on another network with no problems so I can safely say this isn't an issue with your software