-
Notifications
You must be signed in to change notification settings - Fork 180
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
Can't find anything about Endpoint::immutable after v.56.1 #3640
Comments
What are you trying to do? If you just want to change the base URL the SDK uses see the developer guide for some examples. If you want to wholesale replace an endpoint to always be something specific you can override the endpoint resolver to just always return that endpoint: // a type that implements `ResolveEndpoint`, see docs
// https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/config/struct.Builder.html#method.endpoint_resolver
let endpoint_resolver = MyCustomResolver::new();
aws_sdk_s3::Config::new(&config)
.to_builder()
// override endpoint resolution completely and return our endpoint
.endpoint_resolver(endpoint_resolver)
.build(); |
I try to put a file in local garage But there is no Endpoint::immutable anymore.
garage log:
If I try like in LOCALSTACK_ENDPOINT example
I get an error: dispatch failure Any ideas? |
As a general note we don't guarantee compatibility with third-party tools. I'm happy to try and point you in the right direction though or give you some things to try. Can you share more of the logs for the dispatch failure you get when setting More than likely when setting let config = aws_config::defaults(BehaviorVersion::latest())
.endpoint_url("http://127.0.0.1:3900/")
.load()
.await;
let s3_config = aws_sdk_s3::config::Builder::from(&config)
.force_path_style(true)
.build();
let s3 = aws_sdk_s3::Client::from_conf(s3_config); |
With force_path_style(true) detailed logs:
Looks like the error due to Received an unknown query parameter: 'x-id' |
This seems like an issue with the third-party tool. Does your request to an actual S3 bucket work? If so I'd recommend opening an issue with garage. |
Hi! Thank you for your great crate!
But what to use instead Endpoint::immutable ?
Thanks!
The text was updated successfully, but these errors were encountered: