Skip to content

Conversation

@iyxan23
Copy link
Contributor

@iyxan23 iyxan23 commented Aug 29, 2024

I had an issue where this minio client throws a InvalidArgumentError: Unable to get bucket region for ... error when trying to retrieve a presigned url. I was so confused as to why would I need to configure bucket regions for minio because I'm running it locally on as a docker container.

I modified the source to console.error the error and it appears like the original error was actually an ECONNREFUSED, masked behind the incorrect InvalidArgumentError because of the large try-catch statement.

In this PR, I made it so that it would only throw InvalidArgumentError only when the originating error is an InvalidBucketNameError, and rethrow any other error.

@prakashsvmx prakashsvmx merged commit e556d26 into minio:master Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants