• Hi All,

    I am using the Espruino Board (not Pico) : Firmware 1.87 (updated to 1.89 but have not retested yet)
    I have not got to the bottom to why my ESP-13 ESP8266 is sensitive to this specific URL and putting this out to you chaps hopefully someone might flag something that I have not considered.

    If you put the address in your browser:

    https://preview.gamesparks.net/callback/­295737vYb5Kd/lamp/kPFrmFnPWrdJuJ69M4Dimg­XxuhrVRefx/572a4047808eb904a08d149c
    

    you will see the result {"lightResponse":"572a4047808eb904a08d14­9c"}

    My ESP13 will work perfectly for all URLs I have tried via HTTPS/HTTP requests via the request("http").get() api. However calling the above end point will throw a timeout error which makes it seem there is something specific to the host (request time, headers required, cookies needed)

    require("http").get("https://preview.gam­esparks.net/callback/295737vYb5Kd/lamp/k­PFrmFnPWrdJuJ69M4DimgXxuhrVRefx/572a4047­808eb904a08d149c", function(res) {
    				        console.log("Response: ",res);
    				        res.on('data', function(d) {
    				          console.log("--->"+d);
    		                 
    				        });
    				      });
    			
    
     at line 1 col 52
    throw Error("CIPSTART failed ("+(a?a:"Timeout")+")");
    

    I have only really seen Olli have this error with Key signing for TLS. TLS is only available via Pico and I can call other HTTPS endpoints so have to assume certs signing is not the issue (well I will conveniently ignore this potential as I don't have root access to the SaaS being called) :)
    http://forum.espruino.com/conversations/­293351/

    I think I need to isolate a couple of things:

    1. Is the issue specific to my ESP13? (unlikely) -- It would be great if someone could call the callback request above from their ESP and see if they get a timeout via http get()
    2. Is the request timeout for request("http") configurable?
    3. Is this an issue because I am using the Espruino Board with HTTPS and not the Pico?

    I have tried writing custom headers passing user agent and cookie etc with no success.

    hmm, any ideas?

    Thanks everyone

    Fraser

About

Avatar for fraser @fraser started