-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix: connection_string_parser.py #3522
fix: connection_string_parser.py #3522
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 23 Aug 24 05:18 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In version 1.0.14, a connection string that includes a port, like the following example, works without any issues: `test_connection_string = 'postgresql://postgres:[email protected]:5432'` However, in version 1.0.15, using this connection string causes an error. "Error building Component PGVector: invalid literal for int() with base 10" This is because 5432, which is the result of parsing the password_url, is being used as the last element in the password_url list.
fix transformed_connection_string = f'{protocol_user}:{encoded_password}@{db_url_name}'
c22457d
to
61eb59b
Compare
In version 1.0.14, a connection string that includes a port, like the following example, works without any issues:
test_connection_string = 'postgresql://postgres:[email protected]:5432'
However, in version 1.0.15, using this connection string causes an error.
"Error building Component PGVector: invalid literal for int() with base 10"
This is because "5432", which is the result of parsing the password_url, is being used as the last element in the password_url list.