Go Down

Topic: Can't Download ESP8266 Board Package (Read 29683 times) previous topic - next topic

gfvalvo

Hi.

All of a sudden Arduino IDE (v1.6.12) is reporting:
Code: [Select]
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
and there are no ESP8266 boards available to choose in the drop-down menu.

Until now, it has been working fine for months.

Anyone else see this?

Appreciate any advise.
No technical questions via PM. They will be ignored. Post your questions in the forum so that all may learn.

pert

#1
Mar 11, 2017, 07:37 pm Last Edit: Mar 11, 2017, 09:01 pm by pert
I confirm. It's not an Arduino IDE specific problem because if you try to load that URL in your browser:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
you'll see the problem is actually that arduino.esp8266.com is down. This has been reported here:
https://github.com/esp8266/Arduino/issues/3035
and here:
http://www.esp8266.com/viewtopic.php?f=26&t=14082

The issue with the boards disappearing is definitely a bug with the Arduino IDE. You can get the boards back by:

Add the URL:
Code: [Select]
https://github.com/esp8266/Arduino/releases/download/2.3.0/package_esp8266com_index.json
to File > Preferences > Additional Boards Manager URLs
Tools > Board > Boards Manager
Wait for downloads to complete.
Click "Close" (don't install the ESP8266 boards, you already have them installed)
The ESP8266 boards will now appear in your Tools > Board menu again.

Note that the above Boards Manger URL can not be used to install the package because it relies on files at arduino.esp8266.com but if it was previously installed it will allow you to get the boards back.

pert

I just noticed you commented on that github issue and had already solved your problem. It would have been courteous for you to mention that here so I didn't waste my time finding a solution that you already knew about.

gfvalvo

No technical questions via PM. They will be ignored. Post your questions in the forum so that all may learn.

Wafi

Fel vid nerladdning av http://arduino.esp8266.com/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
java.lang.RuntimeException: java.lang.Exception: Fel vid nerladdning av http://arduino.esp8266.com/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
   at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:176)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Fel vid nerladdning av http://arduino.esp8266.com/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:69)
   at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:110)
   at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:173)
   ... 1 more
Caused by: java.net.UnknownHostException: arduino.esp8266.com
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:589)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
   at sun.net.www.http.HttpClient.New(HttpClient.java:308)
   at sun.net.www.http.HttpClient.New(HttpClient.java:326)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
   at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
   at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
   ... 4 more

thats the error i get

pert

The issue has been reported to the ESP8266 core developers:
https://github.com/esp8266/Arduino/issues/3198
I'm sure they will have it fixed shortly.

It's a shame this problem keeps happening over and over again but we can't complain too much since they're providing the core for free. It would almost be worth setting up a mirror. I know it affects a lot of people every time this happens.

luiz_666

Hello to all users, use this link http://diy.mikolex.de/package_esp8266com_index.json it solves esp8266 issue installation.

smilliken

Glad this is being worked on. I thought I was doing something wrong.
Projects galore, finding time is another thing!

pert

If you need a quick fix you can read through the issue report for some workarounds in addition to the one luiz_666 posted. If you use an alternative JSON file URL then be sure to change it back once the problem with the official one is solved because it's likely the unofficial ones will not be maintained and so you will not get a notification when an updated version of the ESP8266 core is available.

mohammdarslan678

 :( I still can't download the ESP8266 Board Package

used both links:

 
https://github.com/esp8266/Arduino/releases/download/2.3.0/package_esp8266com_index.json

                                                      and
http://arduino.esp8266.com/stable/package_esp8266com_index.json
 >:(


Help please

Advise will be appreciated.
Thanks

Rexypad

Thank you so much Pert, your link works so well, Thanks again :). Helped me a lot

ashok99

This workaround worked for me. Though the URL was returning expected JSON it was returning error "Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json" in IDE. I tried following and now I'm able to resolve this issue.

1. Open preferences.txt from C:\Users\AppData\Local\Arduino15 ( this path may vary depending on your
OS) and remove value for "boardsmanager.additional.urls"
2. Delete all .tmp files from this folder (C:\Users\AppData\Local\Arduino15)
3. Copy & paste URL in File->preferences
4. Goto Board-> Manager board... now you dont see any error and ESP8266 should be there in the list

https://user-images.githubusercontent.com/4254118/46203331-1a7fc980-c337-11e8-8aed-31eb2e02b788.JPG

gareddy2008

all the above doesnt work its still giving error

leonardoarcanjo

This workaround worked for me. Though the URL was returning expected JSON it was returning error "Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json" in IDE. I tried following and now I'm able to resolve this issue.

1. Open preferences.txt from C:\Users\AppData\Local\Arduino15 ( this path may vary depending on your
OS) and remove value for "boardsmanager.additional.urls"
2. Delete all .tmp files from this folder (C:\Users\AppData\Local\Arduino15)
3. Copy & paste URL in File->preferences
4. Goto Board-> Manager board... now you dont see any error and ESP8266 should be there in the list

https://user-images.githubusercontent.com/4254118/46203331-1a7fc980-c337-11e8-8aed-31eb2e02b788.JPG
Thanks man!!

I follow the steps that you wrote and worked!!

pert

This workaround worked for me. Though the URL was returning expected JSON it was returning error "Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json" in IDE. I tried following and now I'm able to resolve this issue.

1. Open preferences.txt from C:\Users\AppData\Local\Arduino15 ( this path may vary depending on your
OS) and remove value for "boardsmanager.additional.urls"
2. Delete all .tmp files from this folder (C:\Users\AppData\Local\Arduino15)
3. Copy & paste URL in File->preferences
4. Goto Board-> Manager board... now you dont see any error and ESP8266 should be there in the list

https://user-images.githubusercontent.com/4254118/46203331-1a7fc980-c337-11e8-8aed-31eb2e02b788.JPG
You only need to do step (2) and (4). Steps (1) and (3) are unnecessary.

Go Up