Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › https requests desktop windows

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17535

    Bas

    hi,

    i am experiencing an error when making a simple https request on desktop windows after installing on fresh windows 10 machine.

                var xmlHttpReq = new XMLHttpRequest()
                   xmlHttpReq.onreadystatechange = function() {
                     if(xmlHttpReq.readyState == xmlHttpReq.DONE && xmlHttpReq.status == 200) {
                       console.log("SUCCESS: "+JSON.stringify(xmlHttpReq.responseText))
                     }
                     else if(xmlHttpReq.readyState == xmlHttpReq.DONE && xmlHttpReq.status != 200) {
                       console.error("Error: Failed to load data from , status = "+xmlHttpReq.status+", response = "+XMLHttpRequest.responseText)
                     }
                   }
    
                   xmlHttpReq.open("GET", "https://maps.googleapis.com/maps/api/geocode/json?address=vienna", true)
                   xmlHttpReq.send()
    

    output is:

    qml: Error: Failed to load data from , status = 0, response = undefined

     

    what could cause this error?

    ssl again?

     

    #17537

    Bas

    the weird thing is that it works on another computer with windows 10 and i do not know why (yet)

    #17538

    Bas
    
        qDebug() << "Support SSL:  " << QSslSocket::supportsSsl()
                << "\nLib Version Number: " << QSslSocket::sslLibraryVersionNumber()
                << "\nLib Version String: " << QSslSocket::sslLibraryVersionString()
                << "\nLib Build Version Number: " << QSslSocket::sslLibraryBuildVersionNumber()
                << "\nLib Build Version String: " << QSslSocket::sslLibraryBuildVersionString();
    

    Support SSL: false

    Lib Version Number: 0

    Lib Version String: “”

    Lib Build Version Number: 268443791

    Lib Build Version String: “OpenSSL 1.0.2h 3 May 2016”

     

    on the laptop :

    Support SSL: true

    Lib Version Number: 268435583

    Lib Version String: “OpenSSL 1.0.0g 18 Jan 2012”

    Lib Build Version Number: 268443791

    Lib Build Version String: “OpenSSL 1.0.2h 3 May 2016”

     

    #17541

    Günther
    Felgo Team

    Hi Bas!

    Qt depends on OpenSSL, which is probably not available on the machine that states “Support SSL: false”, so this is why the XmlHttpRequest can not work.

    Please make sure that OpenSSL is correctly installed on your system.

    You can also have a look at this StackOverflow post, which specifically mentions these required OpenSSL libs:

    libeay32.dll
    ssleay32.dll

     

    Hope this helps!

    Best,
    Günther

    #17545

    Bas

    Yesss, thanx this was very helpfull indeed 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded