You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is not PyChromeDevTools, but Chrome, which added a mechanism for which the user must specify a whitelist of origins that can establish WebSocket connection.
Indeed, if you look at the stdout of Chrome, you see:
[1182969:1182969:0331/102931.723102:ERROR:devtools_http_handler.cc(766)] Rejected an incoming WebSocket connection from the http://localhost:9222 origin. Use the command line flag --remote-allow-origins=http://localhost:9222 to allow connections from this origin or --remote-allow-origins=* to allow all origins.
So, please run Chrome with the --remote-allow-origins=* option.
I added a note on the Readme.
I'm getting following error for recent versions of WebView.
Call:
PyChromeDevTools.ChromeInterface(host='127.0.0.1', port=37461, timeout=5)
Stack trace:
It sems server is not accepting connection from the localhost. When I've added
suppress_origin=True
tocreate_connection
call it worked.The text was updated successfully, but these errors were encountered: