-
-
Notifications
You must be signed in to change notification settings - Fork 398
Invalid json when updating index #1050
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
Comments
@drio |
For some reason they have changed the name of the package index file: The new URL: So the "invalid package index" error is not any fault of Arduino CLI. However, I do think we should consider whether an inaccessible URL breaking the compilation is the correct behavior. In this case it's a permanently dead URL and so the correct thing to do is to remove it or update it. However, sometimes a web server goes down temporarily, and you wouldn't want to remove the Boards Manager URLs from your configuration just so you can continue to use the Arduino CLI for purposes that don't have any need for access to that web server. It would also be interesting to see if we can improve the error message. I think it would be more helpful for it to give the HTTP error code rather than trying to interpret it as a package index. |
Thank you all for your answers.
I forgot to mention that. I tried but arduino-cli keeps trying to pull the index:
Notice the new valid url (Thank you @per1234). |
@drio You can also initialise a config file somewhere else and tell the CLI to specifically pick that one passing |
You can find the location of the active Arduino CLI configuration file with this command:
The verbose output will contain a line with something like this:
|
@drio |
The latest nightly build fixes the issue. What I did:
Thank you all for your help. |
This is strange, I wouldn't expect the latest nightly to fix this issue, I'm still working on a fix for it. Could you repeat those steps with the latest release? I'd expect it to work. |
@silvanocerza It seems also fine (using |
Bug Report
Current behavior
Since yesterday, arduino-cli is failing when updating indexes.
Expected behavior
I believe this is not a arduino-cli issue but a problem on the seeed-studio side.
Environment
arduino-cli Version: 0.13.0 Commit: 693a045eea420c29ca7027e668eee31bce37365d
Additional context
I believe this started to fail for me yesterday (Oct 29).
The text was updated successfully, but these errors were encountered: