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

onError handling #10

Open
greenc0102 opened this issue Mar 16, 2023 · 2 comments
Open

onError handling #10

greenc0102 opened this issue Mar 16, 2023 · 2 comments

Comments

@greenc0102
Copy link

Just implemented this to my project and getting great results so far. As a test I changed my url to be wrong and this causes an error of course. Is there a way to handle such an error with this package? If not what would be the best way to do so manually?

Thanks in advance

@JonahBateman
Copy link

I would also like to know a way to handle exceptions thrown from inside FirebaseImageProvider. In my application I have to check for invalid urls so I have to hit the server and make sure the url is valid before I use this package because if an image doesn't exist on the server then the exception is caught by the Image Resource Service before I can handle it.

It would be nice to try and access the cache before I need to make any network requests.

@imsamgarg
Copy link
Owner

I'm planning to add the optional FirebaseUrl? fallbackUrl field to the FirebaseImageProvider. It will first try to fetch the firebaseUrl if the image does not exist on the server, then it will try to fetch the fallbackUrl. Any feedback would be much appreciated.

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

3 participants