Closed jiashiwen closed 1 month ago
I'm using strois
, which uses ureq, which uses rust's std
DNS resolver, and this just started happening to me as well, but only if I do a bunch of requests simultaneously.
I don't have any /etc/hosts entries for AWS
Thank you for reporting the issue. Did it start occurring after you upgraded aws-sdk-s3
(and others) to the versions you pasted above? And if so, what was the last working version of aws-sdk-s3
?
@ysaito1001 I'm not using aws-sdk-s3
Are you using cloudflare DNS (1.1.1.1)?
@njaard, Hmm, if the same issue occurs with strois and a different HTTP client, the issue could be outside our SDK.
@ysaito1001 I'm not using
aws-sdk-s3
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. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
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