OSError: Could not resolve hostname when using overturemaps Python API or CLI behind corporate proxy #527
Closed
jaime-srr
started this conversation in
Discussion
Replies: 2 comments 2 replies
-
|
Hi jaime-srr. Thanks for writing this up. You're right that this is a proxy configuration problem, not necessarily an Overture issue. Arrow's S3 client doesn't inherit standard proxy env vars, so you'll need to configure it at the AWS/Arrow level. You could try adding the proxy url to your AWS config file. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You could also make a feature request to overturemaps-py for how you'd like our tooling to handle this! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Both the Python API (
record_batch_reader) and the CLI (overturemaps download) fail with the same low‑level error:The failure occurs after the request reaches the proxy, even though a simple
curlrequest to the bucket URL succeeds (returns the XML bucket listing).Environment
overturemapsversion0.3.5(installed viapip install overturemaps)pyarrowversion24.0.0http_proxy,https_proxy,HTTP_PROXY,HTTPS_PROXYall point to the above URLCommands that were run
1️⃣ Python script (client API)
Output / traceback
2️⃣ CLI command
Output / traceback
Debugging steps already performed
Result: 200 OK and the XML bucket listing (the same XML that appears in the error output).
This shows that the proxy can resolve the hostname and retrieve the bucket listing.
Requested help
We are not sure that overturemaps client handles proxy settings. Does it automatically respect the usual http_proxy / https_proxy environment variables for all S3 operations—including the HEAD and GET requests for individual objects? If the client doesn’t pick up those variables on its own, could you point me to the right way to pass proxy configuration explicitly? Any work‑arounds or tips that have helped you get downloads working through a proxy would be greatly appreciated. Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions