Unsolved QWebView initiating connection to WebSocket results in Proxy type is invalid.
-
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.
-
@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)
-
Thanks for your reply. However, we are using Qt version 5.9.1.
-
OK. Are you using QNetworkProxyFactory in your application? Do you have any custom proxy settings on OS/environment level?
-
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
-
@Konstantin-Tokarev Yes, We are using QNetworkProxyFactory in our application. Also, there is custom proxy settings in our working environment.
-
Then update Qt and check if standalone QTcpSocket is working properly with your proxy settings