-
Notifications
You must be signed in to change notification settings - Fork 419
ValueError: invalid literal for int() with base 10 #429
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
Comments
Looks like #418. You’ve got @ in your username which throws off the DSN parser. Try passing it as a url-eacaped query argument: ?user=... |
I assumed libpq's parsing supported this syntax because I've run into the error: |
That error and the source code suggest that libpq doesn't actually support literal |
I got that error when not including the literal |
asyncpg parses this correctly for me: |
Thanks for your help. I mistakenly used |
is this the proper way of connecting? not this? update: |
The correct way is to use |
That's fine, but putting it as |
To clarify, both |
the issue with a local PostgreSQL install?: Azure, haven't tried to reproduce with a local PG
returns:
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 anint
.I'm sure this is just a silly mistake on my end that I can't see. Thanks.
The text was updated successfully, but these errors were encountered: