swinton / screenshot-website

:camera_flash: A GitHub Action to capture screenshots of a website, across Windows, Mac, and Linux

Home Page:https://git.io/screenshot-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process never completes

rootwork opened this issue · comments

I'm not sure which of the new changes might have caused this, but as of the latest commit, when I try to run even the basic usage (one screenshot, one resolution, on ubuntu-latest) the action never completes. I don't get any error, it's just stuck on the screenshot step indefinitely -- I canceled it after 2 hours.

Same here, what I see is:

Run swinton/screenshot-website@v1.x
  with:
    source: http://www.centrometeolombardo.com/moduli/stazioni.php?lema
    destination: screenshot.png
    full-page: true
    delay: 0
Error: Protocol error (Emulation.setDeviceMetricsOverride): Invalid parameters Failed to deserialize params.width - BINDINGS: mandatory field missing at position 98
Error: The operation was canceled.

That's really odd.

I have an end-to-end test suite which runs successfully: https://github.com/swinton/screenshot-website/actions/runs/534207319

Can you take a look at the end-to-end tests and let me know if there are differences in how you are running this action compared to what the end-to-end tests are doing?

Looks like the issue is only when the width field is not passed, adding it makes the workflow complete correctly

I suspect this is the culprit: 2567c41

We may need a default for width:

width:
description: 'Page width'
required: false

OK, should be fixed now and available in v1.x, I have test coverage for this here: 3ed5001

Thanks for the bug report!

Thanks for the quick fix

Thank you!

It is still happening for me, and I'm using v1.X, can it be caused by something else?