Startup fails silently if package index can't be downloaded #860
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
On startup, Arduino Create Agent downloads a package index file from Arduino's download server.
This download might fail for a variety of reasons. If this happens, Arduino Create Agent simply fails to start without giving any indication to the user of the failure or why:
arduino-create-agent/index/index.go
Lines 73 to 74 in d4c4537
🐛 It is difficult for the user to determine why Arduino Create Agent won't start.
To reproduce
🐛 Arduino Create Agent fails to start.
🐛 Unless you started Arduino Create Agent from the terminal (which a normal user will never do), there is no indication of why it failed to start.
Expected behavior
Arduino Create Agent clearly communicates the failure to start and the reason to the user.
Arduino Create Agent version
d4c4537
Operating system
Operating system version
Browser
N/A
Additional context
A basic lack of Internet access was used in the demo above for the sake of simplicity. Admittedly, since Arduino Create Agent is inherently linked to the Arduino Cloud online service, this specific scenario is probably unlikely to occur in the real world. However, there are a variety of other reasons why the download might fail such as:
A log file is not generated even when the
crashreport
key is set totrue
in the configuration file.The only logs printed to the terminal are something like this, which isn't identified as an error message (as opposed to a non-critical warning):
Because the Windows build of Arduino Create Agent is built as a "GUI binary", complex PowerShell acrobatics are required for Windows users to even see these logs.
Originally reported at https://forum.arduino.cc/t/create-agent-crashes-trying-to-use/1192619
Issue checklist
The text was updated successfully, but these errors were encountered: