Closed
Description
I catch it when installing esp8266:esp8266
, so I'll write steps about it.
Steps to reproduce
- Add the additional URL into
.cli-config.yml
:board_manager: additional_urls: - http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Run
arduino-cli core install esp8266:esp8266
- It runs installation and shows progress bars...
- Press "Ctrl+C" (abort installation) while it loads one of tools.
- Run
arduino-cli core install esp8266:esp8266
again
Expected behavior
It tries to download tools again and then installs the core.
Actual behavior
It exits with a message on each run:
Downloading esp8266:[email protected]...
esp8266:[email protected] downloaded
Error: server returned a non-2XX status code
Error downloading esp8266:[email protected]
How to reproduce again
- Go to the data folder (by default it is
arduino15
folder) - Open
staging/packages
directory and remove all archives with esp tools. - Run
arduino-cli core install esp8266:esp8266
— it will download tools again without error about "non-2XX status code".
So... looks like it can't override archive in the staging folder and throws an incorrect error 🤔