I'm developing a clothing management app for Android devices using Flutter. Text data related to clothes (material, color, season, imageUrl...) is stored in Firebase Database, and images are stored in Storage.
I've developed up to the point of loading text & image data from Firebase to show the digital wardrobe screen, and everything was working fine until the day before yesterday.
Current Issue:
Starting today, image data loading is suddenly failing. While I can access Firebase Database properly, I can't load image data stored in Storage. When I try to access it with the code below;
Widget _buildClothImage(cloth) {
return cloth.imagePath != null
? Image.network(
cloth.imagePath!,
fit: BoxFit.cover,
)
: Container(
color: Colors.grey[200],
child: const Icon(Icons.image, size: 40),
);
}
I got this error:
I/flutter (24492): 🔴 Image error: SocketException: Connection failed (OS Error: Network is unreachable, errno = 101), address = firebasestorage.googleapis.com, port = 443
Flutter version: Flutter 3.27.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision d8a9f9a52e (7 days ago) • 2025-01-31 16:07:18 -0500 Engine • revision 82bd5b7209 Tools • Dart 3.6.2 • DevTools 2.40.3
What I've tried:
- Copied and pasted the URL from cloth.imagePath into a browser to try loading the image (image displays properly).
- Tried using any web image URL as an argument for Image.network (displays properly).
- Confirmed Firebase Storage security rules are open (all requests before 2025/4/6 are allowed).
- Checked timezone of the test device (showing correct current date and time)
What else could I try?