You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the underlying Rust library's issue on this topic: servo/rust-url#793
The conclusion seems to be that the URL standard makes no distinction between user:@ and user@. The password should be treated as the empty string either way.
When I create a
pydantic_core.Url
with password as empty string as follow (similar withMultiHostUrl
):I expected
clickhouse://user:@localhost:8123/ch_db
(password
as empty string)But I got
clickhouse://user@localhost:8123/ch_db
. I think what I got seems good only whenpassword
isNone
.I faced this problem when try to connect to Clickhouse with
clickhouse_connect
It raised Wrong password error. Even I have a solution is use
dns="clickhouse://user:@localhost:8123/ch_db"
but I think it's not good practice.Is
pydantic_core
support create Url with empty passwordThe text was updated successfully, but these errors were encountered: