I assume that in the subsequent uploads the Espruino environment is fully reset, and the errors do not occur, but using setInterval the environment is not "cleaned" in a similar way.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, an automatic retry has crossed my mind, but I wanted to understand why these thing "happed" first.
Based on https://www.espruino.com/Puck.js+Controlling+Other+Pucks I made a version with busy/connected flags.
This works brilliant.
Output of 2 subsequent uploads, no errors.
But when I execute the getData function with a setInterval, the "uncaught errors .... promise....." reappear.
I assume that in the subsequent uploads the Espruino environment is fully reset, and the errors do not occur, but using setInterval the environment is not "cleaned" in a similar way.