thanks @Chaika - no sdk for Java right? just double checking
thanks @Chaika - no sdk for Java right? just double checking

@aws-sdk/client-s3 DeleteObjectCommand .DeleteObjectCommand is technically not supported yet but are there any other ways to do this from workers?



storage::s3: Error getting object: ErrGetObject(Unhandled(Unhandled { source: ErrorMetadata { code: Some("NoSuchBucket"), message: Some("The specified bucket does not exist."), extras: None }, meta: ErrorMetadata { code: Some("NoSuchBucket"), message: Some("The specified bucket does not exist."), extras: None } }))
weur but maybe I should use eeur?[
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST"
],
"AllowedHeaders": [
"*"
]
}
] try {
const url = new URL(request.url);
const params = url.searchParams;
const key = params.get('key');
console.log('key', key);
const data = await S3.send(new DeleteObjectCommand({
Bucket: 'fakeBucket',
Key: key
}));
return new Response(JSON.stringify({
msg: 'I mean, something happened!',
data: data
}), {
status: 200,
headers: headers
});
} catch (err) {
return new Response(JSON.stringify(
{
msg: 'Error',
error: err
}),
{
status: 500,
headers: headers
});
}{
"msg": "Error",
"error": {
"$metadata": {
"attempts": 1,
"totalRetryDelay": 0
}
}
}[
{
"AllowedOrigins": [
"*",
"https://sabetudo.ai",
"https://www.sabetudo.ai",
"http://localhost"
],
"AllowedMethods": [
"GET",
"HEAD"
],
"ExposeHeaders": [
"Content-Type",
"Access-Control-Allow-Origin",
"ETag"
]
}
]storage::s3: Error getting object: ErrGetObject(Unhandled(Unhandled { source: ErrorMetadata { code: Some("NoSuchBucket"), message: Some("The specified bucket does not exist."), extras: None }, meta: ErrorMetadata { code: Some("NoSuchBucket"), message: Some("The specified bucket does not exist."), extras: None } }))