Could Not Download Page Error

Error message: Could not download page


This is either a blocking error (see this error for potential solutions) or your X-evaluate custom JavaScript code has an error in it. If you’re using Custom JS, please try without it. If it works, try debugging the JS by rewriting it, simplifying, testing in a real browser’s JS console, etc.

Tips on debugging X-evaluate scripts:

  1. Check if the site can even run X-eval by putting in something simple, then picking that content up with a Custom API selector. This JS creates a new element with dummy content which you can target with the Custom API to make sure the injection of the new element was successful. If OK, go to next step.
  2. Check if the script has the start() and end() functions. If OK, go to next step.
  3. Check that the script without start() and end() successfully runs in a browser’s regular console. If OK, go to next step.
  4. Check that the script doesn’t take longer than 60 seconds to execute. If OK, go to next step.
  5. Avoid using JavaScript classes. Instead of var re = new RegExp(‘ab+c’); use var re = /ab+c/;
  6. Use try/catch blocks to isolate running and failing parts of the script, line by line, until you find on which line it fails. You can put the simple injection script from step 1 after every line and you’ll know it executed.

We are working on better X-eval debugging, but this generally helps matters.

Good luck!