Baseflow / Baseflow/flutter_cached_network_image

Exception: Invalid image data

Open
#797 18 comments 12 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Flutter is used on the main page_ cached_ network_ image。
The url of this image is invalid
Jumping to the next page will report this error

cached_network_image: ^3.2.2
code:
Container(
margin: const EdgeInsets.only(left: 20, top: 54),
child: ClipOval(
child: CachedNetworkImage(
imageUrl: avatorUrl??'',
height: 64,
width: 64,
fit: BoxFit.fill,
progressIndicatorBuilder: (context, url, downloadProgress) =>
CircularProgressIndicator(value: downloadProgress.progress),
errorWidget: (context, url, error) => Image.asset(
'assets/images/profile/head-portrait.png',
width: 36,
height: 36,
fit: BoxFit.fill,
),
)),
)

======== Exception caught by image resource service ================================================
The following _Exception was thrown resolving an image codec:
Exception: Invalid image data

When the exception was thrown, this was the stack:
#0 _futurize (dart:ui/painting.dart:5886:5)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:5741:12)
#2 instantiateImageCodecFromBuffer (dart:ui/painting.dart:2092:60)
#3 PaintingBinding.instantiateImageCodecFromBuffer (package:flutter/src/painting/binding.dart:153:15)
#4 ImageLoader.loadBufferAsync. (package:cached_network_image/src/image_provider/_image_loader.dart:68:22)

#5 ImageLoader._load (package:cached_network_image/src/image_provider/_image_loader.dart:121:25)

#6 new MultiImageStreamCompleter. (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:25:18)

Image provider: CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0)
Image key: CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0): CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.