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
Unable to connect to local Minio server when a proxy configuration is specified, even when the Minio server host is set in the http.nonProxyHosts.
#5179
Open
armlesshobo opened this issue
May 3, 2024
· 0 comments
I cannot connect to an S3 service running on the local network, despite setting the http.nonProxyHosts property
Expected Behavior
I expect to be able to connect to both an S3 service running on the local network, as well as to AWS S3, when HTTP proxy settings are provided as JVM options.
Current Behavior
It appears the HTTP request is being sent through the proxy, instead of being sent through the local network.
I see this in the log:
software.amazon.awssdk.core.exception.SdkClientException: Failed to send the request: Proxy-based connection establishment failed because the CONNECT call failed
Reproduction Steps
Run a local instance of minio and set up a region/bucket/access key in the WebUI.
Describe the bug
With an async client built with the following code, ...
and with the following JVM properties set:
I cannot connect to an S3 service running on the local network, despite setting the http.nonProxyHosts property
Expected Behavior
I expect to be able to connect to both an S3 service running on the local network, as well as to AWS S3, when HTTP proxy settings are provided as JVM options.
Current Behavior
It appears the HTTP request is being sent through the proxy, instead of being sent through the local network.
I see this in the log:
Reproduction Steps
Run a local instance of minio and set up a region/bucket/access key in the WebUI.
Build a client with the following code:
run the program with these JVM options:
(It actually doesn't matter if the http.proxyHost is set to a real HTTP proxy host, because we shouldn't be going through it anyway.)
Perform any action with that client. I tried to list buckets in my test.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.23.3
JDK version used
openjdk version "17.0.11" 2024-04-16 LTS
Operating System and version
Windows 11 Enterprise Version 10.0.22621
The text was updated successfully, but these errors were encountered: