Skip to content

ValueError: invalid literal for int() with base 10 #429

Closed
@marshallford

Description

@marshallford
  • asyncpg version: 0.18.3
  • PostgreSQL version: PostgreSQL 10.5, compiled by Visual C++ build 1800, 64-bit
  • Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
    the issue with a local PostgreSQL install?
    : Azure, haven't tried to reproduce with a local PG
  • Python version: 3.6.7
  • Platform: WSL - Ubuntu 18.04
  • Do you use pgbouncer?: no
  • Did you install asyncpg with pip?: yes
  • If you built asyncpg locally, which version of Cython did you use?: N/A
  • Can the issue be reproduced under both asyncio and uvloop?: Will try after submitting issue.
await asyncpg.connect(dsn="postgres://user@some-azure-uid:password@some-azure-uid.postgres.database.azure.com:5432/database")

returns:

ValueError: invalid literal for int() with base 10: 'password@some-azure-uid.postgres.database.azure.com:5432'

Obviously this isn't my actual hostname or password. I have tried removing the port (:5432) thinking that it is the only part that would be parsed as an int.

I'm sure this is just a silly mistake on my end that I can't see. Thanks.

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