Warning! You are not connected to the Internet

I am having a strange behavior when compiling on EspHome. I am connected to the Internet, I can access HA and EspHome from outside my network, but when I compile a node I get the error message and it does not compile.

INFO Reading configuration /config/esphome/blind_1.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/blind_1
Processing blind_1 (board: nodemcuv2; framework: arduino; platform: [email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Warning! You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchains.
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.2
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.6
|   |-- <ESPAsyncTCP-esphome> 1.2.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0

Please search before posting. This is right before your post:

This is a problem with ESPHome stable branch. Some users solved the problem by switching to dev branch, but I will wait for an update. See: https://github.com/esphome/issues/issues/1265

1 Like

Was facing the same difficulty but upgrading to the latest version (both Hassio and Espohome) fixed the issue.