I have a similiar problem using ESP8266 with nodemcu firmware.
First request runs fine, 2nd creates an internal error.
After resetting (power reset) and starting same application again, it runs without problems, at least next hours (never tested more than 2 hours).
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.
I have a similiar problem using ESP8266 with nodemcu firmware.
First request runs fine, 2nd creates an internal error.
After resetting (power reset) and starting same application again, it runs without problems, at least next hours (never tested more than 2 hours).