Minor bug: bad screenshot path says "Unsupported screenshot mime type: null"
See original GitHub issuePuppeteer 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:
- Created 4 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Your file path needs to terminate with a image mime-type Example: /path/to/screenshot .png
screenshot.png will be the name of screenshot 😉
yes, thanks, that’s what i said in my issue
that’s actually not correct behavior. mime types are not inferred from file extensions.
also, this error message is badly wrong