There is a bug in Arduino IDE (which should be fixed in the next release) that causes it to get an invalid configuration if you set the preferences to cause Arduino IDE to access the Internet through a proxy server, and then later change the preferences back to "No proxy". This error indicates that your Arduino IDE preferences are in this bad state.
I'll provide instructions you can follow to fix the configuration:
Select File > Quit from the Arduino IDE menus if it is running.
Delete the file at the following path:
/Users/<username>/.arduinoIDE/arduino-cli.yaml
(where <username> is your macOS username) The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut. Please be careful when deleting things from your computer. When in doubt, back up!
Start Arduino IDE.
Arduino IDE should now start up fully and be functional as usual.
Note that the file you deleted is also used to store other IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location"
or "Additional Boards Manager URLs" preferences, you'll need to select File > Preferences from the Arduino IDE menus and then set those preferences once again.
Please let me know if you have any questions or problems while following those instructions.
Sorry about that. I copied the instructions from a post where I was helping a Windows user and forgot to adjust the menu paths to the non-standard menu paths used by macOS.
These are the instructions for macOS:
Select Arduino > Quit Arduino from the Arduino IDE menus if it is running.
Delete the file at the following path:
/Users/<username>/.arduinoIDE/arduino-cli.yaml
(where <username> is your macOS username) The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut. Please be careful when deleting things from your computer. When in doubt, back up!
Start Arduino IDE.
Arduino IDE should now start up fully and be functional as usual.
Note that the file you deleted is also used to store other IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location"
or "Additional Boards Manager URLs" preferences, you'll need to select Arduino IDE > Settings... from the Arduino IDE menus and then set those preferences once again.
Please let me know if you have any questions or problems while following those instructions.