Skip to content

Conversation

dylanspag-lmco
Copy link
Contributor

DuckDB currently throws the following error for http_proxy values formatted as http://<proxy_fqdn>:<proxy_port>:

InvalidInputException("Failed to parse http_proxy '%s' into a host and port", proxy_value)

This PR creates a copy of the proxy_value argument within HTTPUtil::ParseHTTPProxyHost and removes the http:// prefix if it is present before parsing the hostname and port. It also includes a unit test to cover this new condition.

@dylanspag-lmco
Copy link
Contributor Author

For anyone tracking this, here's a manual workaround in the meantime:

SET http_proxy = replace(getenv('http_proxy'), 'http://', '');

@dylanspag-lmco dylanspag-lmco changed the title fix: remove http prefix from proxy URL when present fix: remove http prefix from proxy value when present Sep 16, 2024
@Mytherin Mytherin requested a review from samansmink September 17, 2024 07:22
Copy link
Contributor

@samansmink samansmink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mytherin Mytherin merged commit 86723c9 into duckdb:main Sep 17, 2024
41 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Sep 27, 2024
fix: remove http prefix from proxy value when present (duckdb/duckdb#13973)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Sep 27, 2024
fix: remove http prefix from proxy value when present (duckdb/duckdb#13973)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants