script_triggers_redirect

A custom script navigated the page away from the requested URL.

target contentHTTP 400terminalnever billed

Common causes

  • · A custom script navigated the page away from the requested URL.
  • · A click handler inside the script followed a link or submitted a form.

What to do

  • · Capture what the request asked for: the URL after a script-driven navigation is not the URL you requested, so the artifact would silently be of another page.
  • · If the destination is what you want, capture that URL directly instead of scripting your way to it.
  • · Use `wait_for_selector` and the documented action order rather than a script when you only need to wait for state.

Response shape

HTTP 400
{
  "is_successful": false,
  "error_code": "script_triggers_redirect",
  "error_message": "A custom script navigated the page away from the requested URL.",
  "documentation_url": "https://api.pagecapture.dev/docs/errors/script_triggers_redirect",
  "request_id": "req_01..."
}