Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported screenshot mime type: image/vnd.mozilla.apng #26

Open
weuroi578 opened this issue Jan 21, 2021 · 2 comments
Open

Unsupported screenshot mime type: image/vnd.mozilla.apng #26

weuroi578 opened this issue Jan 21, 2021 · 2 comments

Comments

@weuroi578
Copy link

Recently updated WitnessMe and ran the following command:

witnessme screenshot textFile.txt - the text file has one url per line as 'https://something.com'

It seems the valid urls (I am able to manually verify them) are providing the following error:

[witnessme.headlessbrowser] ERROR - Error navigating to url https://SOMETHING.COM: Unsupported screenshot mime type: image/vnd.mozilla.apng

Thank you in advance for your help.

@0x6d6f7468
Copy link

0x6d6f7468 commented Mar 23, 2021

Ran into the same issue as well. Traced the issue down the Pyppeteer itself, though not sure why it's happening yet:

https://github.com/pyppeteer/pyppeteer/blob/7486b56c072be469f5d9f7ac797f59ecea2a5c65/pyppeteer/page.py#L1249

[Update 1] I did a kludge patch in my install of Pyppeteer, looks like my scan is running now. Basically added to the conditional in that line of code. If I end up with usable screenshots, I might end up opening an issue or PR with Pyppeteer.
[Update 2] It worked. Changing line 1249 of /usr/lib/python3/dist-packages/pyppeteer/page.py to if mimeType == 'image/png' or mimeType == 'image/vnd.mozilla.apng': What a mess, though I don't think it's a WitnessMe problem.

@0x6d6f7468
Copy link

@weuroi578 in case you're still hoping to use WitnessMe ^ Hope that helps for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants