Your hanging could be something to do with the console moving to Serial1 I guess. Have you tried forcing it to USB in onInit?
If some code hung, the the input buffer could get full from the responses from the SIM900, which might mean that Ctrl+C no longer worked. It seems strange though.
The errors you were getting with the newline at the start of the HTTP request - do they also happen on the very first HTTP request you make? I have a hunch that it might be rubbish that's left over from previous HTTP requests.
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.
Your hanging could be something to do with the console moving to Serial1 I guess. Have you tried forcing it to USB in onInit?
If some code hung, the the input buffer could get full from the responses from the SIM900, which might mean that Ctrl+C no longer worked. It seems strange though.
The errors you were getting with the newline at the start of the HTTP request - do they also happen on the very first HTTP request you make? I have a hunch that it might be rubbish that's left over from previous HTTP requests.