amplify-android
amplify-android copied to clipboard
Storage.getUrl("ExampleKey") should be able to throw a meaningful exception if the file does not exist in the storage
Before opening, please confirm:
- [X] I have searched for duplicate or closed issues and discussions.
Language and Async Model
Not applicable
Amplify Categories
Storage
Gradle script dependencies
// Put output below this line
Environment information
# Put output below this line
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
When we call getUrl from storage category we are receiving a presigned url even though the file does not exist.The expected behavior is to return a meaningful exception if the file does not exist in the storage.
Reproduction steps (if applicable)
amplify add storage Call Amplify.Storage.getUrl("NonexistedFile");. call getUrl with a non-existed File.
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
amplifyconfiguration.json
No response
GraphQL Schema
// Put your schema below this line
Additional information and screenshots
No response
Fix released in version 2.20.0
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.