Corrupt Board Manager json ClearCore

I have a problem that I can repeat on both Mac and Windows, but the supplier of the hardware can't. The supplier is:

The problem is that the file (Mac file path):

/Users/xxxx/Library/Arduino15/package_clearcore_index.json

is a 517 bytes random binary file instead of a 3 326 bytes text (json) file.

When opening the Board Manager the output from the Arduino IDE (in the lower, black, part of a sketch window, both Mac and Window) is:

Skipping contributed index file /Users/urban/Library/Arduino15/package_clearcore_index.json, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x67
at [Source: (FileInputStream); line: 1, column: 4]

I would be great full if anyone could try to repeat this by adding the board to the additional Boards Manager URLs in Preferences in the Arduino IDE. The URL is:

https://www.teknic.com/files/downloads/package_clearcore_index.json

I have used the Arduino IDE 1.8.19. The Mac OS have been Monterey 12.3.1 (tested on two Macs and also newly created users. Windows 10 have been used for Windows tests.

If a correct json is manually added it will stay un-corrupted until the Board Manager is opened.

It is a fairly new problem, it have worked before.

I am located in Sweden, but have also tried US via a VPN tunnel.

I would be very thankful for any help with this!!

Hi Urban,

I just installed the ClearCore board on a fresh computer successfully using the standard process with the given URL. However, I did notice a peculiarity when I tried to save the JSON file manually by right clicking it and selecting "save link as...". This failed with a "No file" message every time. I suspect that your computer is not actually fetching the JSON file, but is fetching an error message page instead. Strangely in chrome I could click the link successfully and save the JSON with copy all and paste. If you save the JSON text as a JSON file you could do a manual board install without the board manager, but this is a bit complicated. Google "add arduino board without board manager" if you want to attempt this. Best of Luck.

I forgot to mention I was using Chrome browser when I right clicked the URL and attempted to save.

Hi Eviquaker,
Thank you for the feedback. I could reproduce the Failed - No file in Chrome.

Just to make sure, if you open the Board Manager in the Arduino IDE, can you see and select the ClearCore board? I also have one of the ClearCore examples open.

Regarding manual download and copy of the json - it works as long as you doesn't open the board manager, so I can get along since it is only the json that is corrupt, the rest of the installation was done when everything worked several month ago.

Hi Urban,

Yes, I can see and select the ClearCore board in the Board Manager. I can also see the ClearCore example sketches. I can not test further than that as my ClearCore board is at work (and currently in use in a machine that is critical to our manufacturing).

Hi Eviquaker,
Thank you for testing! This is so strange! One last question, where are you located approximately? Maybe it has to do with an internet provider, like Cloud Flare.

We have thousands of hours invested in a development project with ClearCore, so I get a bit nervous when things like this happens!

I was able to add the additional board manager in Preferences and then select the ClearCore board from the IDE with no issues. Also able to see the ClearCore example sketches.

Located in New Zealand. Max OS Big Sur. IDE 1.8.16,

Thank you red_car!

This issue resolved it self on all devices, very strange. It might be worth mentioning that I also deleted the cash in the Arduino15 ClearCore folder, something I have been doing several times before as well. I don't have an explanation to why it didn't work before or why it started working. I have used three different internet providers, so that was not the problem.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.