- Newest
- Most votes
- Most comments
The issue you're experiencing with the 500 error on OPTIONS requests for your S3 bucket in eu-west-2 could be due to a few potential factors:
-
Temporary S3 service issues: Sometimes, S3 can experience temporary internal errors in specific regions. This could explain why it works in eu-north-1 but not in eu-west-2.
-
CORS configuration: Although you've set up CORS rules, ensure that the CORS configuration is properly applied to the new bucket in eu-west-2. Sometimes, CORS changes can take a little time to propagate.
-
Bucket policy: Double-check that the bucket policy in eu-west-2 allows the necessary actions, especially for cross-origin requests.
-
Presigned URL generation: Ensure that the S3 client used to generate the presigned URL is configured for the correct region (eu-west-2).
To troubleshoot:
-
Wait a short while and try again, in case it's a temporary S3 service issue.
-
Verify that the CORS configuration is correctly applied to the eu-west-2 bucket.
-
Check the bucket policy to ensure it's not inadvertently blocking the request.
-
Confirm that your S3 client is configured for the eu-west-2 region when generating the presigned URL.
-
Try generating a presigned URL with a longer expiration time to rule out timing issues.
-
Use AWS CloudTrail or S3 server access logging to get more detailed information about the requests and any errors.
If the issue persists after these steps, it may be worth contacting AWS support for further assistance, as they can investigate potential service-side issues specific to the eu-west-2 region.
Sources
Troubleshooting HTTP 5xx errors from Amazon S3 | AWS re:Post
Community | Secure File Uploads to S3 Using AWS Lambda
Generating a presigned URL to upload an object to an S3 on Outposts bucket - Amazon S3 on Outposts
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago