相关疑难解决方法(0)

websocket._exceptions.WebSocketProxyException:通过代理状态失败CONNECT:503

提供的答案需要有关qlik服务器身份验证的更多详细信息

我正在尝试qlik通过WebSockets 连接到使用证书.

错误:

websocket._exceptions.WebSocketProxyException: failed CONNECT via proxy status: 503
Run Code Online (Sandbox Code Playgroud)

码:

from websocket import create_connection  
import ssl  


senseHost = "dummy.xyz.com"  
privateKeyPath = "C:\\ProgramData\\Qlik\\Sense\\Repository\\Exported Certificates\\"  


## userDirectory and userId can be found at QMC -> Users  
userDirectory, userId = "DIRECTORY_OF_SERVER","QlikServerUserId"  


url = "wss://" + senseHost + ":4747/app/"  # valid  
certs = ({"ca_certs": privateKeyPath + "root.pem",  
            "certfile": privateKeyPath + "client.pem",  
            "keyfile": privateKeyPath + "client_key.pem",  
            "cert_reqs":ssl.CERT_REQUIRED,  
            "server_side": False  
            })  
ssl.match_hostname = lambda cert, hostname: True  
ws = create_connection(url, sslopt=certs,
                       http_proxy_host="xyz.corp.company.com", …
Run Code Online (Sandbox Code Playgroud)

python http-proxy websocket python-3.x qliksense

11
推荐指数
1
解决办法
359
查看次数

标签 统计

http-proxy ×1

python ×1

python-3.x ×1

qliksense ×1

websocket ×1