Giter VIP home page Giter VIP logo

Comments (2)

captainbrosset avatar captainbrosset commented on June 11, 2024

I've reproduced this error and I'm currently investigating the cause.
I have narrowed it down to after the "newRoot" mutation gets received on the front-end, when it sends the following request packet:

{
    "type": "querySelector",
    "node": "chromium1.node3-20-49",
    "selector": "body",
    "to": "chromium1.chromium_domwalker11"
}

which it does to be able to select <body> by default in the markup-view. Some times that call will succeed and return the right front, but some times, the subsequent RPC request won't return a node, causing the rest of the code to fail. Typically, this RPC call:

let response = yield this.rpc.request("DOM.querySelector", {
  nodeId: baseNode.handle.nodeId,
  selector: selector
});

returns response.nodeId = 0.

from valence.

captainbrosset avatar captainbrosset commented on June 11, 2024

For instance, the following chrome protocol request:
{"id":54,"method":"DOM.querySelector","params":{"nodeId":169,"selector":"body"}}

gets the following response:
{"id":54,"result":{"nodeId":0}}

And the response data doesn't contain an error property, so it's kind of hard understanding what's happening, especially that all message and node IDs seem to be correct from what I've seen.

from valence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.