Is this with Espruino WiFi? And does it happen the first time you perform the request?
Please can you post up what process.memory() reports, just before the request? So add the line console.log(JSON.stringify(process.memory())) just before the http.request in the code you posted above.
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.
Is this with Espruino WiFi? And does it happen the first time you perform the request?
Please can you post up what
process.memory()
reports, just before the request? So add the lineconsole.log(JSON.stringify(process.memory()))
just before thehttp.request
in the code you posted above.