Hi,
I am hosting images on dropbox and have saved their "shared links" in my firebase database and am using those links to display images in my app.
The problem is half the time the images don't load and get "Object Event" error on my app. (Screen shots attached)
For many of the error images, I checked the links from my database and verified that these are valid links and the images open up in my browser
Then the next time I load my page, images that were giving an error earlier load fine and some other images give this error
Console says the following:
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
dart_sdk.js:29145 The following Event$ object was thrown resolving an image frame:
dart_sdk.js:29145 [object Event]
dart_sdk.js:29145
dart_sdk.js:29145 When the exception was thrown, this was the stack
dart_sdk.js:29145
dart_sdk.js:29145 Image provider:
dart_sdk.js:29145 NetworkImage("https://www.dropbox.com/scl/fi/gs0z03ged8zrr4j6qpqg1/15205-OT-70-B-246-x-311_3_thumb1.jpeg?rlkey=z73ltc5cm7gek76uyd3rlum0o&raw=1",
dart_sdk.js:29145 scale: 1)
dart_sdk.js:29145 Image key:
dart_sdk.js:29145 NetworkImage("https://www.dropbox.com/scl/fi/gs0z03ged8zrr4j6qpqg1/15205-OT-70-B-246-x-311_3_thumb1.jpeg?rlkey=z73ltc5cm7gek76uyd3rlum0o&raw=1",
dart_sdk.js:29145 scale: 1)
dart_sdk.js:29145 ════════════════════════════════════════════════════════════════════════════════════════════════════
But if you copy and paste the links in a browser, you can see that these images are openable and direct links to images and not the dropbox page.
Why am I getting these errors and how can I handle them?
Thanks,