PIO Core Call Error: Error: [API] Could not connect to PlatformIO API Service. Please try later.
Yeah, seems as if *.platformio.org is offline. I can't build anything now.....
Yes, I also get a connection refused when trying to access the website directly, and nothings builds without api.platformio.org.
* Rebuilt URL to: api.platformio.org/
* Trying 193.222.52.25...
* TCP_NODELAY set
* Connection failed
* connect to 193.222.52.25 port 80 failed: Connection refused
* Failed to connect to api.platformio.org port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to api.platformio.org port 80: Connection refused
* Rebuilt URL to: https://api.platformio.org/
* Trying 193.222.52.25...
* TCP_NODELAY set
* Connection failed
* connect to 193.222.52.25 port 443 failed: Connection refused
* Failed to connect to api.platformio.org port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to api.platformio.org port 443: Connection refused
Why we should care if some site is down. It should have an option to compile without internet.
@yozik04 you just need internet/PIO LIbrary Registry when you build your project first time and it depends on extra libraries from PlatformIO Registry.
Sorry for the issue. The first unexpected downtime for the last 3 years. We will investigate this issue in the logs.
Now everything works well.
@ivankravets Actually I am not building the project for the first time. I have all libs locally. If I disconnect from wifi then build succeeds.
If I disconnect from wifi then build succeeds.
Yes, that is correct behavior. PlatformIO SHOULD work in offline mode without any problems. Please ping me if something is wrong.
The problem was that if platformio detected that a network connection existed (through some other method I presume), but api.platformio.org was unreachable, the build failed.
This was what was removing the ability to build in the brief time period before. Disconnecting WiFi during that time had the correct result of just printing a warning and trying to build anyway. So if internet connection exists, but API not reachable, the build fails even though the libraries are installed locally.
@OttoWinter is right. If feels like a place to do some improvements.
So if internet connection exists, but API not reachable, the build fails even though the libraries are installed locally.
Thanks! I'll retest that later. I've just reopened this issue.
I can't reproduce this issue. Do you have a firewall? Could you try to block api.platformio.org and re-test?
Please reopen if you still need help
same issue after changer dns and having my hassio ip change wifi->wlan.
It appears to be down again.
I keep getting:
[API] ConnectionError: HTTPConnectionPool(host='api.platformio.org', port=80): Max retries exceeded with url: /v2/lib/search?query=name%3A%22ESP8266WiFi%22 (Caused by NewConnectionError('
and after 5 attempts:
Error: [API] Could not connect to PlatformIO API Service. Please try later.
I don't have anything to add other than, I can't build anything at the moment either, because of this issue, whatever it is.
Do you have access to https://api.platformio.org/lib/stats ?
Thank you for your rapid response. It is mysteriously working once again, having been dead for about 4 hours. I'm trying to think what I can have done to fix it, but nothing particularly makes sense.
Things I tried:
Sorry to have bothered you.
So, I still have this issue.
I am running Haas from within a Docker instance on Ubuntu. And ESPHome
within HAAS.io.
The Ubuntu machine has access to the internet, and does resolve DNS queries
without issue.
I have checked the DNS entries for resolve, for the docker config on the
host and for the docker image itself as per other solutions found on the
forum (and I know it works because HA has internet access, downloads
add-ons, and updates OK).
Yet still JUST the ESPHome add-on does not resolve DNS requests and as
such, I cannot build a thing.
Any ideas?
On Tue, Jul 2, 2019, 2:48 PM DeeBeeKay notifications@github.com wrote:
Thank you for your rapid response. It is mysteriously working once again,
having been dead for about 4 hours. I'm trying to think what I can have
done to fix it, but nothing particularly makes sense.Things I tried:
- Disabled my pihole. No effect.
- I read above that disabling the network interface may force it to
proceed using local files, so, disabled the WAN connection in my router
since I'm logged into a pi that's elsewhere on the local network. No
appreciable effect, I just got yelled at about there being no internet
connection.- Re-enabled the WAN. Cursed as realised killing the WAN had also
killed download of new version of FL Studio. I am an idiot.- Stumped off to workshop to fetch a tool.
- Returned, and it's working.
Sorry to have bothered you.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/platformio/platformio-core/issues/1658?email_source=notifications&email_token=AKKYCUXIK43S3MI5R7VPOSLP5OWIPA5CNFSM4FDMUA7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZCLNXA#issuecomment-507819740,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKKYCUVGGIM65DEAFDYV35LP5OWIPANCNFSM4FDMUA7A
.
Could you provide an output from
traceroute api.platformio.org
Sure.
When running a traceroute (or a ping) from HAAS.io I get the "traceroute: bad address 'api.platformio.org' " error.
ping to 8.8.8.8 works OK.
I resolved on MY LAPTOP api.platformio.org to 193.222.52.25.
Pinged from HASS.io to it without issues.
I still cannot resolve any DNS addresses from within HASS.io, yet it works from the HA instance and from the linux computer OK.
Now, a traceroute to 193.222.52.25 shows the correct routing order and internal hop count for my network.
See attached screenshots for all above.
(Sorry in advance for the first couple of typos on the addresses and commands)
Just in case anyone else comes across this-- my issue was that my network firewall was GeoIP blocking IPs in Ukraine (along with a bunch of other countries), and it seems platformio's hosting is in Ukraine. Removed Ukraine from the blocklist and all is well now.
Platformio is down again...
and again
https://status.platformio.org/
There are no issues with our APIs.
Cannot compile firmware
ping cannot access

another screen tracert

This is ok that you can’t ping PlatformIO.org. We disabled ICMP packets for security reason. Try “curl https://platformio.org/“. It should work.
It should work.
yes, its work
but i got error while try compile firmware

INFO Reading configuration /config/esphome/inkubator_s.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running: platformio run -d /config/esphome/inkubator_s
Processing inkubator_s (board: d1_mini; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Looking for ESPAsyncTCP-esphome library in registry
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.
Looking for ESPAsyncWebServer-esphome library in registry
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.
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.
Looking for ArduinoJson-esphomelib library in registry
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
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <Wire> 1.0
Compiling /data/inkubator_s/.pioenvs/inkubator_s/src/esphome/components/api/api_connection.cpp.o
Compiling /data/inkubator_s/.pioenvs/inkubator_s/src/esphome/components/api/api_server.cpp.o
In file included from src/esphome/components/api/api_connection.h:7:0,
from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory
*********************************************************************
* Looking for ESPAsyncTCP.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:ESPAsyncTCP.h"
* Web > https://platformio.org/lib/search?query=header:ESPAsyncTCP.h
*
*********************************************************************
#include <ESPAsyncTCP.h>
^
compilation terminated.
*** [/data/inkubator_s/.pioenvs/inkubator_s/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/api/api_server.cpp:1:0:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory
*********************************************************************
* Looking for ESPAsyncTCP.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:ESPAsyncTCP.h"
* Web > https://platformio.org/lib/search?query=header:ESPAsyncTCP.h
*
*********************************************************************
#include <ESPAsyncTCP.h>
^
compilation terminated.
*** [/data/inkubator_s/.pioenvs/inkubator_s/src/esphome/components/api/api_server.cpp.o] Error 1
========================== [FAILED] Took 5.98 seconds ==========================
#############################################################################
root@15ef4d2f-esphome:/# platformio lib search "header:ESPAsyncTCP.h"
Error: You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchains.
root@15ef4d2f-esphome:/# telnet api.platformio.org 80
Trying 31.28.1.238...
Connected to nm1.platformio.org.
Escape character is '^]'. Running
root@15ef4d2f-esphome:/# telnet api.platformio.org 443
Trying 31.28.1.238...
Connected to nm1.platformio.org.
Escape character is '^]'. Running
Most helpful comment
Just in case anyone else comes across this-- my issue was that my network firewall was GeoIP blocking IPs in Ukraine (along with a bunch of other countries), and it seems platformio's hosting is in Ukraine. Removed Ukraine from the blocklist and all is well now.