Baseflow / Baseflow/flutter_cached_network_image
Throws console error with some urls but all images are loaded
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## π Bug Report
I have a problem with some images, all the images are visible but in the console with some urls it throws an error and with others it does not, before it did not happen to me
### Expected behavior
No error occurs when uploading images
### Reproduction steps
I have a list of products each with its respective image, with this url no error occurs https://www.justpoke.club/uploads/SOPAMISO.jpg but with this one if it happens https://www.justpoke.club/uploads/EDAMAMESALVAPOR.jpg
The image in both cases is shown in the application but in the case of the second image it shows me the following console error:
`flutter: CacheManager: Failed to download file from with error:
Invalid argument(s): No host specified in URI
flutter: (debug)[2021-05-06 18:49:45.548653: βββ‘ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE βββββββββββββββββββββββββββββββββββββββββββββββββββββ
The following ArgumentError was thrown resolving an image codec:
Invalid argument(s): No host specified in URI
When the exception was thrown, this was the stack:
#0 _HttpClient._openUrl (dart:_http/http_impl.dart:2425:9)
#1 _HttpClient.openUrl (dart:_http/http_impl.dart:2341:7)
#2 IOClient.send
package:http/src/io_client.dart:30
#3 HttpFileService.get
package:flutter_cache_manager/β¦/web/file_service.dart:35
#4 WebHelper._download
package:flutter_cache_manager/β¦/web/web_helper.dart:114
#5 WebHelper._updateFile
package:flutter_cache_manager/β¦/web/web_helper.dart:98
#6 WebHelper._downloadOrAddToQueue
package:flutter_cache_manager/β¦/web/web_helper.dart:66
Image provider: CachedNetworkImageProvider("", scale: 1.0)
Image key: CachedNetworkImageProvider("", scale: 1.0):
CachedNetworkImageProvider("", scale: 1.0)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ]
`
if I put a value to maxHeightDiskCache and maxWidthDiskCache, the error keeps happening but in different urls
### Configuration
my flutter doctor is next
`[β] Flutter (Channel stable, 2.0.5, on macOS 11.3 20E232 darwin-x64, locale es-419)
β’ Flutter version 2.0.5 at /Users/diegopadillaquijas/fvm/versions/stable
β’ Framework revision adc687823a (hace 3 semanas), 2021-04-16 09:40:20 -0700
β’ Engine revision b09f014e96
β’ Dart version 2.12.3
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
β’ Android SDK at /Users/diegopadillaquijas/Library/Android/sdk
β’ Platform android-30, build-tools 30.0.3
β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 12.4, Build version 12D4e
β’ CocoaPods version 1.10.1
[β] Chrome - develop for the web
β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[β] Android Studio (version 4.1)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/9212-flutter
β’ Dart plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/6351-dart
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[β] VS Code (version 1.56.0)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.22.0
[β] Connected device (2 available)`
**Version:** 3.0.0
**Platform:**
- [ x ] :iphone: iOS
- [ ] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.