SEND ERROR: NotSupportedError: GATT operation failed for unknown reason.
This might sound stupid, but that error actually comes from your main computer, not Puck.js - so I think it's an issue with the computer - I bet it'd work fine from another.
Please can you make sure your operating system isn't paired with the device via the OS's bluetooth menu? Also you could try rebooting your computer just in case?
What's likely happening is:
You turned your Puck into a bluetooth keyboard
You then paired it with your PC, all was fine but the PC now thinks it's a keyboard and tries to auto-connect whenever it sees the device
Now you change the code on the Puck (or maybe it was written into RAM so it disappeared when you removed the battery). The Puck is no longer a HID device
The OS still tries to auto-connect, but when it sees the Puck is no longer a HID device, it disconnects - it doesn't realise that you're actually trying to program it with the Web IDE as well.
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.
Sorry you're having issues...
This might sound stupid, but that error actually comes from your main computer, not Puck.js - so I think it's an issue with the computer - I bet it'd work fine from another.
Please can you make sure your operating system isn't paired with the device via the OS's bluetooth menu? Also you could try rebooting your computer just in case?
What's likely happening is:
Hope that helps!