Open
Description
I believe the issue is that the devtoolsFrontendUrl
has changed and is now a fully qualified URL of this shape:
https://chrome-devtools-frontend.appspot.com/serve_rev/@0f351bbd2617e0f775543271f34b7d241f8ebcdc/inspector.html?ws=127.0.0.1:59784/devtools/page/1BEAF3B70D21B8A922DB33142416038C
Which leads the debug_url to be incorrect:
http://127.0.0.1:59784https://chrome-devtools-frontend.appspot.com/serve_rev/@0f351bbd2617e0f775543271f34b7d241f8ebcdc/inspector.html?ws=127.0.0.1:59784/devtools/page/33A55C714077D24AFB103C88BE15D12E
I solved it on my end by just returning the devtoolsFrontendUrl as-is:
def debug_url
response = JSON.parse(Net::HTTP.get(URI(build_remote_debug_url(path: "/json"))))
devtools_frontend_path = response[0]&.[]("devtoolsFrontendUrl")
raise "Could not generate debug url for remote debugging session" unless devtools_frontend_path
devtools_frontend_path
end
Metadata
Metadata
Assignees
Labels
No labels