missteps when trying to get the region for a public bucket. Finally the solution (or a hack) was to bruteforce the different buckets and finding out which one works. Will probably implement this in the main code.
Any other solutions are welcome. Thanks for watching this video