2 Answers
- Newest
- Most votes
- Most comments
0
getBucketLocation() returns a region ID like "af-south-1" for all regions except us-east-1, when it returns null. Are you sure it's getBucketLocation() returning the error rather than something using its output that's getting tripped up by the null?
0
I debugged the code and as per you were saying getBucketLocation() returns "US" for us-east-1, so I was getting that error. Problem has been resolved. Thank you.
answered a year ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago