Skip to content

package_esp8266com_index.json contains garbage #6068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
obor00 opened this issue May 11, 2019 · 23 comments · Fixed by #6070 or #6258
Closed

package_esp8266com_index.json contains garbage #6068

obor00 opened this issue May 11, 2019 · 23 comments · Fixed by #6070 or #6258

Comments

@obor00
Copy link

obor00 commented May 11, 2019

https://arduino.esp8266.com/stable/package_esp8266com_index.json contains garbage at the start of the file, and Arduino IDE can't decode it anymore:

Dropping version 1.6.5-947-g39819f0
Dropping version 2.5.0-beta1
Dropping version 2.5.0-beta2
Dropping version 2.5.0-beta3
Dropping version 2.4.0-rc1
Dropping version 2.4.0-rc2
{
"packages": [
{
...

@probonopd
Copy link
Contributor

probonopd commented May 11, 2019

I second this - it breaks by builds.

http://arduino.esp8266.com/stable/package_esp8266com_index.json gives in Firefox:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Reference: probonopd/WirelessPrinting#118 (comment)

@d-a-v
Copy link
Collaborator

d-a-v commented May 11, 2019

Will be fixed by #6070

@BasEmmen
Copy link

A couple of minutes ago i lost the ESP8266 boards from the list.
Is this the result of the incorrect Json ?

Skipping contributed index file /Users/Me/Library/Arduino15/package_esp8266com_index.json, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Dropping': was expecting ('true', 'false' or 'null')
at [Source: (FileInputStream); line: 1, column: 10]

@d-a-v
Copy link
Collaborator

d-a-v commented May 11, 2019

We are fixing this as fast as we can. We are waiting for CI to approve the fix.
https://travis-ci.org/esp8266/Arduino/builds/531090576?utm_source=github_status&utm_medium=notification

@gnbl
Copy link

gnbl commented May 11, 2019

Workarounds?

@obor00
Copy link
Author

obor00 commented May 11, 2019

I also tried to copy the file without Garbage on my own web server, and got an error "Erreur durant le téléchargement de http://.../package_esp8266.com"

@gnbl
Copy link

gnbl commented May 11, 2019

This seems to work

EDIT: deleted https://gist.githubusercontent.com/gnbl/...package_esp8266com_index.json

but upgrading to / installing the latest version gives an error.

So I'm currently installing 2.5.0. Seems to work.

@gnbl
Copy link

gnbl commented May 11, 2019

Garbage is still in file - how long until the fix is propagated?

@probonopd
Copy link
Contributor

Still getting SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

@d-a-v
Copy link
Collaborator

d-a-v commented May 11, 2019 via email

@gnbl
Copy link

gnbl commented May 11, 2019

For me it isn't - have you tried?
https://arduino.esp8266.com/stable/package_esp8266com_index.json

@probonopd
Copy link
Contributor

For me it is neither. Still getting SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data in Firefox. Even after refreshing.

@d-a-v
Copy link
Collaborator

d-a-v commented May 11, 2019

Right, it is still there. I pushed 2.5.1 tag that will regenerate the file.
We have to wait for another CI (https://travis-ci.org/esp8266/Arduino/builds/531102618)

@d-a-v d-a-v reopened this May 11, 2019
@zeeshanyshaikh
Copy link

Thank god i reached here, i have uninstalled my Arduino. I thought i messed with my libraries.

@morphal
Copy link

morphal commented May 11, 2019

Travis build is done:
https://travis-ci.org/esp8266/Arduino/builds/531102618
But garbage is still in the file:
https://arduino.esp8266.com/stable/package_esp8266com_index.json

UPD: seems to be cached. The file is OK now

@probonopd
Copy link
Contributor

It is working again for me now 👍 thanks

@obor00
Copy link
Author

obor00 commented May 11, 2019

Works ok. Thanks :)

@FrancescoTalotta
Copy link

FrancescoTalotta commented May 11, 2019

It does not work for me :(

Error downloading https://github.com./esp8266/Arduino/releases/download/2.5.1/esp8266-2.5.1.zip

@CombiesGit
Copy link

Same!
Fehler beim Herunterladen von https://github.com./esp8266/Arduino/releases/download/2.5.1/esp8266-2.5.1.zip

Version 2.5.0 is now working

@phenotypic
Copy link

@FrancescoTalotta It works now if you select version 2.5.0 - seems there is a problem with the release of 2.5.1 which is why you are getting that error. Hopefully 2.5.1 will be released again properly soon.

@devyte devyte closed this as completed May 11, 2019
@tobozo
Copy link

tobozo commented Jul 4, 2019

https://arduino.esp8266.com/stable/package_esp8266com_index.json still has some 404 errors, faulty URLs can be found by filtering with 'gb404fb9' term

image

@d-a-v d-a-v reopened this Jul 4, 2019
@esp8266 esp8266 deleted a comment from d-a-v Jul 4, 2019
@earlephilhower
Copy link
Collaborator

Oops, sorry, @d-a-v, deleted your comment instead of mine.

There is no actual problem here. Those files are not referenced by the platforms at all. We could delete them, but someone using any of the Arduino toolchains (get.py, boards-manager) will never access that "tools" key.

I'll throw out a PR to clean them on the next release, but there is no rush...

earlephilhower added a commit to earlephilhower/Arduino that referenced this issue Jul 4, 2019
Fixes esp8266#6068

Drop from the tools key all version:"1.20.0-26-gb404fb9" entries (which
were pre-2.0.0 and whose entry in platform versions was deleted on last
release).
earlephilhower added a commit that referenced this issue Jul 16, 2019
Fixes #6068

Drop from the tools key all version:"1.20.0-26-gb404fb9" entries (which
were pre-2.0.0 and whose entry in platform versions was deleted on last
release).
@earlephilhower
Copy link
Collaborator

Bug is closed, but the actual file won't be regenerated until the next release so you won't see any updates to the .json just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet