Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

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

@jvgeee

Description

@jvgeee

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions