Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QWebView initiating connection to WebSocket results in Proxy type is invalid.
Forum Updated to NodeBB v4.3 + New Features

QWebView initiating connection to WebSocket results in Proxy type is invalid.

Scheduled Pinned Locked Moved Unsolved Qt WebKit
7 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hetal
    wrote on 13 May 2019, 14:19 last edited by
    #1

    Hi,

    We have QWebView loading a JSP, in turn that code connects to WebSocket. But, when we inspect that code we are getting following error
    "WebSocket Newtwork Error: The Proxy type is invalid for this operation."

    However, if we hit the same URL from Chrome browser, it does not give such error and connects to web-socket successfully.

    Could you please help?

    Thanks.

    K 1 Reply Last reply 13 May 2019, 15:21
    0
    • H Hetal
      13 May 2019, 14:19

      Hi,

      We have QWebView loading a JSP, in turn that code connects to WebSocket. But, when we inspect that code we are getting following error
      "WebSocket Newtwork Error: The Proxy type is invalid for this operation."

      However, if we hit the same URL from Chrome browser, it does not give such error and connects to web-socket successfully.

      Could you please help?

      Thanks.

      K Offline
      K Offline
      Konstantin Tokarev
      wrote on 13 May 2019, 15:21 last edited by
      #2

      @Hetal Which version of QtBase are you using? I suspect that this error might be caused by https://bugreports.qt.io/browse/QTBUG-58706 (fixed in 5.9)

      1 Reply Last reply
      1
      • H Offline
        H Offline
        Hetal
        wrote on 14 May 2019, 11:05 last edited by
        #3

        Thanks for your reply. However, we are using Qt version 5.9.1.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Konstantin Tokarev
          wrote on 14 May 2019, 11:42 last edited by
          #4

          OK. Are you using QNetworkProxyFactory in your application? Do you have any custom proxy settings on OS/environment level?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Konstantin Tokarev
            wrote on 14 May 2019, 13:41 last edited by Konstantin Tokarev
            #5

            Please update your Qt at least to latest 5.9.x, there was at least one bug (https://bugreports.qt.io/browse/QTBUG-64834) fixed after 5.9.1 which could result in that error message

            H 1 Reply Last reply 14 May 2019, 14:59
            0
            • K Konstantin Tokarev
              14 May 2019, 13:41

              Please update your Qt at least to latest 5.9.x, there was at least one bug (https://bugreports.qt.io/browse/QTBUG-64834) fixed after 5.9.1 which could result in that error message

              H Offline
              H Offline
              Hetal
              wrote on 14 May 2019, 14:59 last edited by
              #6

              @Konstantin-Tokarev Yes, We are using QNetworkProxyFactory in our application. Also, there is custom proxy settings in our working environment.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Konstantin Tokarev
                wrote on 14 May 2019, 15:56 last edited by
                #7

                Then update Qt and check if standalone QTcpSocket is working properly with your proxy settings

                1 Reply Last reply
                0

                1/7

                13 May 2019, 14:19

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved