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

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

Closed
1 task done
kvramyasri7 opened this issue Apr 19, 2023 · 2 comments
Assignees
Labels
feature-parity Feature missing from this library but available on other ones improvement Any improvement that's not a bug and not requesting new functionality storage Related to the Storage category/plugins

Comments

@kvramyasri7
Copy link

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 kvramyasri7 added the feature-parity Feature missing from this library but available on other ones label Apr 19, 2023
@dengdan154 dengdan154 added storage Related to the Storage category/plugins pending-triage Issue is pending triage and removed pending-triage Issue is pending triage labels Apr 19, 2023
@eeatonaws eeatonaws added the improvement Any improvement that's not a bug and not requesting new functionality label Apr 24, 2023
@phantumcode phantumcode self-assigned this Jun 3, 2024
@phantumcode
Copy link
Contributor

Fix released in version 2.20.0

Copy link
Contributor

github-actions bot commented Aug 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-parity Feature missing from this library but available on other ones improvement Any improvement that's not a bug and not requesting new functionality storage Related to the Storage category/plugins
Projects
None yet
Development

No branches or pull requests

4 participants