79373007

Date: 2025-01-21 01:42:55
Score: 0.5
Natty:
Report link

It looks like puppeteer doesn't like you calling page.setViewport before having any content loaded.

If you do it looks like page.close() is called.

If anyone is trying to debug problems with puppeteer I recommend starting it with this line from a shell:

env DEBUG="puppeteer:*" node puppeteer_script.js "$@" <&0

This should help you find the problem. Having used puppeteer twice I have found it rather picky on the order you run things.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: racitup