Wellenline / auddly-server

Simple self-hosted music streaming server
https://auddly.app
MIT License
301 stars 13 forks source link

unexpected end of JSON input #17

Closed repercussion closed 4 years ago

repercussion commented 4 years ago

Fresh install. Docker compose. Android app returns "unexpected end of JSON input".

version: "3"
services:
  app:
    container_name: waveline-api
    restart: always
    build: ./
    environment:
      - MONGO_URL=mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongodb/waveline?authSource=admin
      - MUSIC_PATH=/music
      - ART_PATH=/art
      - SPOTIFY_ID=${SPOTIFY_ID}
      - SPOTIFY_SECRET=${SPOTIFY_SECRET}
      - AUTH_ENABLED=true
      - API_KEY=${API_KEY}
      - PORT=5000
      - HOST=https://waveline.${DOMAINNAME}:5000
    volumes:
      - ${MUSIC_PATH}:/music
      - ./.cache:/art
    ports:
      - "5000:5000"
    links:
      - mongodb
    depends_on:
      - mongodb
  mongodb:
    image: mongo:latest
    container_name: "mongodb"
    environment:
      - MONGO_DATA_DIR=/data
      - MONGO_LOG_DIR=/dev/null
      - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
    volumes:
      - ./data/mongo:/data
    ports:
      - 27018:27017
    command: mongod --auth --logpath=/dev/null

Android version is stock Q running version 1.5.4 of the app.

MihkelBaranov commented 4 years ago

Does this happen after the QR scanning or when loading the music library?

repercussion commented 4 years ago

When trying to add the server manually in the android app. I've wondered where the QR code is supposed to be. Thought it was just planned but not yet implemented.

nickexyz commented 4 years ago

I got the same error when trying to add the server manually. Seems like it needs to be HTTPS. Solved it by throwing the Waveline server behind HAProxy with a valid TLS certificate. Also, I couldn't find where you would get the QR code either. :)