Replies: 1 comment
-
Looks like you're getting an HTTP 301 status code which indicates a redirect. The SDK does not follow redirects automatically. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I've tested my creds and they work, I've used S3 Browser as well and that works fine, with aws-sdk-rust I can't seem to upload a file at all.
I just get this service error
: ServiceError(ServiceError { source: Unhandled(Unhandled { source: ErrorMetadata { code: None, message: None, extras: None }, meta: ErrorMetadata { code: None, message: None, extras: None } }), raw: Response { status: StatusCode(301), headers: Headers { headers: {"content-length": HeaderValue { _private: H0("0") }, "location": HeaderValue { _private: H0("https://ewr1.vultrobjects.com/new-bucket-71723ce3/testafsfsa?x-id=PutObject") }} }, body: SdkBody { inner: Once(Some(b"")), retryable: true }, extensions: Extensions { extensions_02x: Extensions, extensions_1x: Extensions } } })
I have no idea what this means or why it happens.
let config = Builder::new() .endpoint_url(endpoint) .set_force_path_style(Some(true)) .clone() .region(Region::new("ewr1")) .credentials_provider(Credentials::new( s3_config.clone().access_key_id, s3_config.clone().secret_access_key, None, None, "static", )) .build();
Beta Was this translation helpful? Give feedback.
All reactions