Skip to content

Password with ? causes "Invalid URL" throw #947

@bmxpiku

Description

@bmxpiku

Hello, apparently when your password is generated with question mark it throws..

await migrate.default({
      // eslint-disable-next-line max-len
      databaseUrl: `postgres://${RDS_USER}:${RDS_PASSWORD}@${RDS_HOST}:${RDS_PORT}/db_name`,
      dir: 'migrations',
      direction: process.env.MIGRATION_DIRECTION || 'up',
      migrationsTable: 'migrations',
      count: process.env.MIGRATE_COUNT || 100,
    });

which produces in my case URL like
postgres://user:pass?word@hosting:5432/db_name
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions