Skip to content

Connection string does not parse hash character properly #485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cypai opened this issue Oct 7, 2019 · 1 comment
Closed

Connection string does not parse hash character properly #485

cypai opened this issue Oct 7, 2019 · 1 comment

Comments

@cypai
Copy link

cypai commented Oct 7, 2019

  • asyncpg version: 0.18.3
  • PostgreSQL version: 11.5
  • Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
    the issue with a local PostgreSQL install?
    : Reproduced locally
  • Python version: 3.7.4
  • Platform: macOS, Debian
  • 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?
    : Didn't try yet

Similar issue to #429 . If the password includes a # character, you get the following error:
ValueError: invalid literal for int() with base 10:

The URI I was using looked like: postgresql://postgres:abcd&#[email protected]:5432/db, and psql parses it correctly.

When you remove the #, it works fine.

@cypai
Copy link
Author

cypai commented Oct 7, 2019

Hmm, looks like a different issue in the databases library. Will check there.

@cypai cypai closed this as completed Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant