Skip to content

[Bug] Shipping broken: Invalid URL #126

Description

@psudo123

What went wrong?

Using the exact setup instructions does not work

APP_IMAGE=ghcr.io/bookorbit/bookorbit:latest
APP_PORT=3000
BOOKS_HOST_PATH=/media/psudo/Main/bookstorage/books
BOOK_DROP_HOST_PATH=/media/psudo/Main/bookstorage/book-dock
PUID=1000
PGID=1000
POSTGRES_USER=bookorbit
POSTGRES_PASSWORD=mypassword
POSTGRES_DB=bookorbit
JWT_SECRET=ad0k2d02012012jl12l121uhudjaoisjdd89asd9as8d9a8sd
SETUP_BOOTSTRAP_TOKEN=92jd92jd92jd92dj92jd92jd901920192
APP_URL=http://localhost:3000
NODE_MAX_OLD_SPACE_SIZE=4000

The result from docker compose logs


bookorbit-app  | TypeError: Invalid URL
bookorbit-app  |     at new URL (node:internal/url:828:25)
bookorbit-app  |     at parse (/app/node_modules/.pnpm/[email protected]/node_modules/pg-connection-string/index.js:30:16)
bookorbit-app  |     at new ConnectionParameters (/app/node_modules/.pnpm/[email protected]/node_modules/pg/lib/connection-parameters.js:60:42)
bookorbit-app  |     at new Client (/app/node_modules/.pnpm/[email protected]/node_modules/pg/lib/client.js:54:33)
bookorbit-app  |     at BoundPool.newClient (/app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:241:20)
bookorbit-app  |     at BoundPool.connect (/app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:235:10)
bookorbit-app  |     at BoundPool.query (/app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:449:10)
bookorbit-app  |     at runMigrations (/app/dist/scripts/migrate.js:35:20)
bookorbit-app  |     at Object.<anonymous> (/app/dist/scripts/migrate.js:49:6)
bookorbit-app  |     at Module._compile (node:internal/modules/cjs/loader:1761:14) {
bookorbit-app  |   code: 'ERR_INVALID_URL',
bookorbit-app  |   input: '*****REDACTED*****',
bookorbit-app  |   base: 'postgres://base'
bookorbit-app  | }
bookorbit-app  | 
bookorbit-app  | Node.js v24.11.1

Steps to reproduce

Following the setup guide

Expected vs actual behavior

.

Your setup

.

Relevant logs (optional)

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.troubleshootingIssues related to debugging, errors, or setup problems.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions