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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument(s): No host specified in URI. Error thrown . #460

Open
2 tasks done
zhanzengyu opened this issue Jul 3, 2024 · 1 comment
Open
2 tasks done

Invalid argument(s): No host specified in URI. Error thrown . #460

zhanzengyu opened this issue Jul 3, 2024 · 1 comment

Comments

@zhanzengyu
Copy link

zhanzengyu commented Jul 3, 2024

🐛 Bug Report

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError
Invalid argument(s): No host specified in URI. Error thrown .
_HttpClient.openUrl (dart:_http)
IOClient.send (io_client.dart:88)
HttpFileService.get (file_service.dart:37)
WebHelper._download (web_helper.dart:115)
WebHelper._updateFile (web_helper.dart:97)
WebHelper._downloadOrAddToQueue (web_helper.dart:65)

Expected behavior

You can check whether url is valid

Reproduction steps

Configuration

Version: 3.3.1

Platform:

  • 📱 iOS
  • 🤖 Android
@tangogithub321
Copy link

我同样遇到了这个问题, 但是我的 issue 产生的原因是因为使用的组件库 cached_network_image, 在使用时, 虽然 cached_network_image 提供了 placeholder 参数, 但是对于传入的 imageurl 是否为 ‘’ 并没有明确的处理, 因此会抛出错误. 我的解决方法就是: 在使用的地方提前判断 image url 是否为 ‘’ 的处理

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

2 participants