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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument(s): No host specified in URI #931

Open
Khondwani opened this issue Mar 16, 2024 · 6 comments
Open

Invalid argument(s): No host specified in URI #931

Khondwani opened this issue Mar 16, 2024 · 6 comments

Comments

@Khondwani
Copy link

馃悰 Bug Report

Even if I put a static URL I am still getting the error below

Expected behavior

Expected behavior is that it is supposed to load the image but that is not happening

Reproduction steps

When switching to a screen that does not have cachedNetworkImage widget the error pops up

When the exception was thrown, this was the stack:
#0 _HttpClient._openUrl (dart:_http/http_impl.dart:2752:9)
#1 _HttpClient.openUrl (dart:_http/http_impl.dart:2623:7)
#2 IOClient.send (package:http/src/io_client.dart:117:38)
#3 HttpFileService.get (package:flutter_cache_manager/src/web/file_service.dart:37:44)
#4 WebHelper._download (package:flutter_cache_manager/src/web/web_helper.dart:115:24)
#5 WebHelper._updateFile (package:flutter_cache_manager/src/web/web_helper.dart:97:28)

#6 WebHelper._downloadOrAddToQueue (package:flutter_cache_manager/src/web/web_helper.dart:65:7)

Image provider: CachedNetworkImageProvider("", scale: 1.0)
Image key: CachedNetworkImageProvider("", scale: 1.0): CachedNetworkImageProvider("", scale: 1.0)

Configuration

Version: 3.3.1

Platform:

  • [ x] 馃摫 iOS
  • [ x] 馃 Android
@mazenshawky
Copy link

I have the same problem

@Khondwani
Copy link
Author

I have the same problem

I resorted to using this package, they resolve this better when it comes to caching: extended_image: ^8.2.0 hope it helps you out.
@mazenshawky

@mazenshawky
Copy link

Thanks, btw I found that this exception is caught. It doesn't affect the release mode or the flow of screens. It's just a way of informing the developer that the image didn't show.

@Khondwani
Copy link
Author

Yeah that I do know but I just do not like seeing that in my command line hahahaha.

@abbasihamed
Copy link

I have the same problem and it stops the execution of the project

@Pnoccio
Copy link

Pnoccio commented Apr 22, 2024

@abbasihamed try to use Android Studio or if you are using Vs Code try to use command to run the project

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

4 participants