Error message: Could not download page
Tips on debugging X-evaluate scripts:
- 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.
- Check if the script has the start() and end() functions. If OK, go to next step.
- Check that the script without start() and end() successfully runs in a browser’s regular console. If OK, go to next step.
- Check that the script doesn’t take longer than 60 seconds to execute. If OK, go to next step.
- 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.