-
Notifications
You must be signed in to change notification settings - Fork 250
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
Use /etc/hosts binding, some APIs are not available #1187
Comments
I'm using I don't have any /etc/hosts entries for AWS |
Thank you for reporting the issue. Did it start occurring after you upgraded |
@ysaito1001 I'm not using Are you using cloudflare DNS (1.1.1.1)? |
No we are not, at least not that I know of. |
Yes, I think the similarity in our problems is a coincidence. |
The problem is caused by request style, change to path style to solve the problem let s3_config_builder = aws_sdk_s3::config::Builder::from(&config).force_path_style(true);
let client = aws_sdk_s3::Client::from_conf(s3_config_builder.build()); thanks! |
Comments on closed issues are hard for our team to see. |
Describe the bug
When using /etc/hosts for binding, some APIs report errors. List_buckets, list_objects_v2, and get_object are verified here.
Expected Behavior
get bucket list ok,get objectlist ok,get object ok
Current Behavior
got bucket ok ,but error got objects list and get object
got buckets: Ok(
ListBucketsOutput {
buckets: Some(
[
Bucket {
name: Some(
"ai-datasets",
),
creation_date: Some(
2024-02-05T02:28:04Z,
),
},
Bucket {
name: Some(
"cs-monitor",
),
creation_date: Some(
2023-02-07T10:12:00Z,
),
},
Bucket {
name: Some(
"dataroom",
),
creation_date: Some(
2024-05-16T10:26:42Z,
),
},
Bucket {
name: Some(
"hackthon2023",
),
creation_date: Some(
2023-08-01T01:43:57Z,
),
},
Bucket {
name: Some(
"jsw-bucket",
),
creation_date: Some(
2023-02-23T03:11:46Z,
),
},
Bucket {
name: Some(
"jsw-bucket-1",
),
creation_date: Some(
2023-09-20T09:43:15Z,
),
},
Bucket {
name: Some(
"pingdata",
),
creation_date: Some(
2021-08-27T03:35:08Z,
),
},
Bucket {
name: Some(
"robot-test",
),
creation_date: Some(
2022-04-12T06:41:43Z,
),
},
Bucket {
name: Some(
"robots",
),
creation_date: Some(
2021-11-09T03:03:23Z,
),
},
Bucket {
name: Some(
"tsp-picture",
),
creation_date: Some(
2022-01-10T03:17:10Z,
),
},
],
),
owner: Some(
Owner {
display_name: Some(
"jcloud_edUmprJ",
),
id: Some(
"577257366345",
),
},
),
continuation_token: None,
_extended_request_id: None,
_request_id: Some(
"917104E844BBC1FA",
),
},
)
objects: Err(
DispatchFailure(
DispatchFailure {
source: ConnectorError {
kind: Io,
source: hyper::Error(
Connect,
ConnectError(
"dns error",
Custom {
kind: Uncategorized,
error: "failed to lookup address information: Name or service not known",
},
),
),
connection: Unknown,
},
},
),
)
obj: Err(
DispatchFailure(
DispatchFailure {
source: ConnectorError {
kind: Io,
source: hyper::Error(
Connect,
ConnectError(
"dns error",
Custom {
kind: Uncategorized,
error: "failed to lookup address information: Name or service not known",
},
),
),
connection: Unknown,
},
},
),
)
Reproduction Steps
code
/etc/hosts bind name
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
ubuntu 22.04
Logs
No response
The text was updated successfully, but these errors were encountered: