amplify-android icon indicating copy to clipboard operation
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

Open kvramyasri7 opened this issue 2 years ago • 1 comments

Before opening, please confirm:

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

kvramyasri7 avatar Apr 19 '23 19:04 kvramyasri7

Fix released in version 2.20.0

phantumcode avatar Aug 09 '24 19:08 phantumcode

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.

github-actions[bot] avatar Aug 09 '24 19:08 github-actions[bot]