skip to Main Content

how to fix HTTP Host Availability in flutter doctor :


[!] HTTP Host Availability
    X HTTP host "https://cocoapods.org/" is not reachable. Reason: An error occurred while checking the HTTP host:
      Connection terminated during handshake
    X HTTP host "https://maven.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host:
      Connection terminated during handshake
    X HTTP host "https://pub.dev/" is not reachable. Reason: An error occurred while checking the HTTP host: Connection
      terminated during handshake
    X HTTP host "https://cloud.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host:
      Connection terminated during handshake

! Doctor found issues in 1 category.

sorry, i don’t know that

3

Answers


  1. It basically is a checks for connectivity to the resources you need for Flutter Development. You need to check your connection if it is an issue during running flutter doctor.

    By doing a little bit of digging we can also find the actual file in flutter code for http host validation: https://github.com/flutter/flutter/blob/eb1a851f5843efb6cecab020467a2ffea48fd1d3/packages/flutter_tools/lib/src/http_host_validator.dart

    Login or Signup to reply.
  2. check your internet connection, I faced this issue too and gone after I tried with better connection.

    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 6.3.9600],
        locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK version 33.0.
    0)
    [√] Chrome - develop for the web
    [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.3)
    [√] Android Studio (version 2021.2)
    [√] VS Code (version 1.74.1)
    [√] Connected device (3 available)
    [√] HTTP Host Availability
    
    * No issues found!
    
    Login or Signup to reply.
  3. Run this command in terminal:

    flutter pub cache repair
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search