Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve responses from AWS to the consumer #1690

Open
kirkbushell opened this issue Aug 3, 2023 · 0 comments
Open

Improve responses from AWS to the consumer #1690

kirkbushell opened this issue Aug 3, 2023 · 0 comments

Comments

@kirkbushell
Copy link

Feature Request

In Flysystem, if you do something like a exists() check, and your permissions are not configured correctly on AWS - what happens is that Flysystem gobbles up the exception provided by guzzle, providing an error message like:

Unable to check existence for: filename.png

This is not particularly helpful. The issue in my circumstance was that AWS was returning a 403 forbidden response. After doing some digging I realised that I could actually pull in the previous exception and see its message, so debugging was a breeze after that.

I think it might be better if Flysystem conveyed the message provided by the original exception. This would make debugging a lot easier. I'm not sure this is a standard across the library, but perhaps worth entertaining?

Scenario / Use-case

File operations against AWS.

Summary

Improve debugging capabilities through clearer error message reporting.

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

No branches or pull requests

1 participant