kpsdk-solver icon indicating copy to clipboard operation
kpsdk-solver copied to clipboard

page.evaluate: window.KPSDK.configure is not a function

Open jvgeee opened this issue 1 year ago • 1 comments

Hey, thanks for this tool.

Trying to get it to work, my Solver is like so:

new Solver({
      "load-complete": true,
      "request-tracing": true,
      kasada: [
        {
          domain: "site.com",
          method: "GET",
          path: "/*",
          protocol: "https:",
        },
      ],
      "sdk-script": {
        url: "https://site.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js",
      },
      url: "https://www.site.com",
    });
  }

This is from trying to screen-scrape a website whose pages are protected by kasada, but I'm getting window.KPSDK.configure is not a function errors. If I remove the kasada[] from the Solver config the page loads but it hits the blank URL with a kasada script tag:

<script src="/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/ips.js?KP_UIDz=0bkRMrjEhQu7pYKFvfyT4Gqm52BScTqyuR5Yj4TCnWOPB4MzXr79maIUyK6cbqZhTOHbIPI0cI67bAN4hd2G1hWHNW0tMai2Uy58vRdajEYnWtngtrrBR5DL4rRxCBJp7YoXQriGVLAtNwhYA17tevVZRZUDF8wTO3JMI7YdWXX&amp;x-kpsdk-im=CiRmNThlM2NiYy0xNTU2LTQ2MDktYmY3Mi0yMGQ0YWYxMWJlYzE"></script>

Any ideas what I can do?

jvgeee avatar Nov 26 '24 11:11 jvgeee

https://github.com/0x6a69616e/kpsdk-solver/issues/21#issuecomment-2868276804

0x6a69616e avatar May 10 '25 03:05 0x6a69616e