christian-bromann/devtools-backend

Frontend not loading

Closed this issue · 4 comments

avaer commented

I can't get the frontend inspector to inspect a script-injected site. The inspector runtime throws this error when clicking through to inspect the target site in the inspect target list:

inspector.js:8213 Main._createAppUI: 19.367919921875ms
inspector.js:8213 Main._showAppUI: 6.758056640625ms
Uncaught TypeError: this._targetAgent.setAttachToFrames is not a function
    at new SDK.ChildTargetManager (inspector.js:3304)
    at SDK.TargetManager.createTarget (inspector.js:3277)
    at SDK.TargetManager._connectAndCreateMainTarget (inspector.js:3299)
    at SDK.TargetManager.connectToMainTarget (inspector.js:3296)
    at Main.Main._initializeTarget (inspector.js:8234)

The rest of the inspector loads, but nothing works, probably due to the above error.

capture

Note that the target site (with injected script) does seem to be correctly detected. It's just the user frontend attach that crashes.

avaer commented

I don't know if this is related, but the server console also gets stuck in an error spam loop:

ERR! devtools-backend:Proxy Internal request failed http://192.168.0.10:9222/scripts/socket.io.js.map Error: socket hang up
avaer commented

Might be same thing as #7

avaer commented

I managed to fix this by commenting out experimental lines in the upstream chrome-devtools-frontend.

But, I'm not sure if this is due to a problem locally or something upstream...

Just pushed a fix for it.