Bangle.js doesn't support HTTP or TCP/IP, which is why you're getting the error. Bluetooth LE doesn't support networking properly, so if you want to connect to the internet, you'll need some kind of 'bridge' that has both BLE and a network connection - like a phone, PC, or Raspberry Pi.
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.
Bangle.js doesn't support HTTP or TCP/IP, which is why you're getting the error. Bluetooth LE doesn't support networking properly, so if you want to connect to the internet, you'll need some kind of 'bridge' that has both BLE and a network connection - like a phone, PC, or Raspberry Pi.