Skip to content

Storage.getUrl("ExampleKey") should be able to throw a meaningful exception if the file does not exist in the storage #2404

@kvramyasri7

Description

@kvramyasri7

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

Metadata

Metadata

Assignees

Labels

feature-parityFeature missing from this library but available on other onesimprovementAny improvement that's not a bug and not requesting new functionalitystorageRelated to the Storage category/plugins

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions