-
Notifications
You must be signed in to change notification settings - Fork 419
url parsing struggle with username containing @ char #483
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
One more point: I tried using |
This is already fixed in #472 and will be in the next release soon. |
@elprans great, thank you? And do you have an ETA for this next release btw? |
Waiting on #295 to land, and also need to do some PostgreSQL 12 testing. |
@elprans excellent, thx :) |
I appear to be getting this because asyncpg thinks there should be a port after the first colon, but it's the username:password colon.
|
I am getting the same error for parsing |
Those aren't valid DSNs, you must |
I am using asyncpg to connect to a Azure PostgreSQL database, and Azure imposes the use of a username of the form
name@db
, so the full connection url looks like:When using such an url to connect with asyncpg, I get the following error:
I see two problems here:
netloc
part of the uri by splitting at the first@
intead of the last one.The ticket is about the second problem:
@
in thenetloc
is for authentication.:
in the auth part to be the password.For the record, when using sqlalchemy + psycogs2, I have no problem using this kind of url to connect to my database.
The text was updated successfully, but these errors were encountered: