The challenge is to create a screenshot of the website. Use Chrome in Headless mode via the command line.
Faced with such problems.
1. You cannot create a screenshot with a delay
2. When you try to access the inaccessible website. The process hangs and does not give control back.
chromium-browser --headless --disable-gpu --screenshot --no-sandbox --window-size=640,480 https://asdfasdfasdfasdfsdf.com
Or crashes with an error
Segmentation fault (core dumped)