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
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
check your internet connection, I faced this issue too and gone after I tried with better connection.
Run this command in terminal: