• Sorry, I'm just looking into this and it appears to be a problem in the 2v25 build - probably related to our switch to using pretokenised modules. I'm amazed I didn't spot it. I'll try and get a fix in in the next few hours.

    In the mean time if you install 2v24 by pasting the link https://www.espruino.com/binaries/espruino_2v24_wifi.bin in on the Web IDE's flasher page that should fix it. You shouldn't have to worry about updating the ESP8266 firmware

    I tried with your code and the following getPage and it seems to work ok on 2v24:

    function getPage() {
      require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
        console.log("Response: ",res);
        res.on('data', function(d) {
          console.log("--->"+d);
        });
      });
    }
    
About

Avatar for Gordon @Gordon started