question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minor bug: bad screenshot path says "Unsupported screenshot mime type: null"

See original GitHub issue

Puppeteer gives a bizarre error message when the path to which you try to write a screenshot is bad: Unsupported screenshot mime type: null

The file path is not a mime type issue.

This was previously reported as #3629, but the original reporter closed the report following self diagnosis.

I believe that this is because the file’s extension is being used to auto-detect the desired mime type, and I had not set the extension initially.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

9reactions
Yokuttocommented, May 9, 2019

Your file path needs to terminate with a image mime-type Example: /path/to/screenshot .png

screenshot.png will be the name of screenshot 😉

2reactions
StoneCyphercommented, May 14, 2019

yes, thanks, that’s what i said in my issue

I believe that this is because the file’s extension is being used to auto-detect the desired mime type, and I had not set the extension initially.

that’s actually not correct behavior. mime types are not inferred from file extensions.

also, this error message is badly wrong

Read more comments on GitHub >

github_iconTop Results From Across the Web

Minor bug: bad screenshot path says "Unsupported ... - GitHub
Puppeteer gives a bizarre error message when the path to which you try to write a screenshot is bad: Unsupported screenshot mime type:...
Read more >
Multiline template strings cause seemingly unrelated error
Template string code during the issue: await page.screenshot({path : `./screenshots/ ${datetime_stamp.getFullYear()} -${datetime_stamp.getMonth ...
Read more >
Introduce a "copy to clipboard" mode to the screenshot tool
Screenshot is downloaded to the Downloads folder. (See Bug 1243525 for my UX notes.) 3. Screenshot is also automatically copied to clipboard. 4....
Read more >
Bug listing with status RESOLVED with resolution TEST ...
Bug :233 - "Emacs segfaults when merged through the sandbox. ... Bug:106732 - "wrong mime.types handling at apache 2.0.54-r31" status:RESOLVED ...
Read more >
JUnit 5 User Guide
Another technical reason for making classes and methods public is to simplify testing on the module path when using the Java Module System....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found