Skip to content
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

Index Erroe #53

Open
tacocatgt opened this issue Mar 19, 2023 · 1 comment
Open

Index Erroe #53

tacocatgt opened this issue Mar 19, 2023 · 1 comment

Comments

@tacocatgt
Copy link

Index error

Hardware

Hardware: ESP8266
Core Version: 2.1.0

When I try and dowload the board manager for the ESP8266_UNO board it gives me a index error.

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: nodemcu

Error:

Failed to install platform: ArduCAM_ESP8266_UNO:ArduCAM_ESP8266_UNO.
Error: 13 INTERNAL: Cannot install platform: installing platform ArduCAM_ESP8266_UNO:ArduCAM_ESP8266_UNO@2.2.4: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 22656170 != 22659072

@per1234
Copy link

per1234 commented Aug 15, 2023

Some notes for the project maintainer:


The incorrect value is defined by the packages[*].platforms[*].size of the package index:

http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json

 "size":"22659072"

Documentation reference here:

https://arduino.github.io/arduino-cli/latest/package_index_json-specification/#platforms-definitions


Arduino IDE 1.x ignores the packages[*].platforms[*].size field of the package index if a packages[*].platforms[*].checksum field is present, so even though the size field value is incorrect, the archive still passes validation when installing the "ArduCAM_ESP8266_UNO" platform via the Arduino IDE 1.x Boards Manager.

Arduino IDE 2.x and Arduino CLI use both the checksum and size fields to verify the archive, so you must use one of those tools in order to reproduce the fault reported here.

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

No branches or pull requests

2 participants