The page provided is not HTML (served as MIME type ).
See original GitHub issueI know there are other issues with a similar name, but they didn’t have a lot of things to try and neither of those worked.
Provide the steps to reproduce
I can’t setup a repo to reproduce it, but I’m attaching the output of curl -vvvv
as I saw was asked in another thread.
test.log
AFAICK, the Content-Type is always text/html; charset=UTF-8.
What is the current behavior?
Lighthouse works fine on several URLs of our app, but there is one where it fails with the following message no matter what we do: The page provided is not HTML (served as MIME type ). (The type is missing in the message.)
What is the expected behavior?
The audits finish.
Environment Information
- Affected Channels: CLI and DevTools
- Lighthouse version: 7.2.0 and 7.0.0 respectively
- Chrome version: 89.0.4389.90 (Official Build) (x86_64)
- Node.js version: 15.5.1
- Operating System: macOS Catalina
Related issues https://github.com/GoogleChrome/lighthouse/issues/12125 https://github.com/GoogleChrome/lighthouse/discussions/12097
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I fix the Lighthouse returned error: NOT_HTML. The ...
Lighthouse returning NOT_HTML can have at least three causes: The page is really served as text/plain or without any valid Content-Type, ...
Read more >The page provided is not HTML (served as MIME type ) #12125
I get The message "The page provided is not HTML (served as MIME type )" when I use LHCI in my GitLab repository....
Read more >Solved: PageSpeed "NOT_HTML" error on Shopify store
The page provided is not HTML (served as MIME type text/plain) error. According to our Technical team, they are not able to troubleshoot...
Read more >Error google pagespeed insight analyst: Lighthouse returner ...
How can I fix the Lighthouse returned error: NOT_HTML. The page provided is not HTML (served as MIME type ) error for square/weebly...
Read more >Properly configuring server MIME types - MDN Web Docs
How to check the MIME type of received content · Load the file and go to Tools > Page Info to get the...
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
Is there a testable URL that you can share? Nothing immediately jumps out to me as problematic in that log, but it would be a lot easier to debug by seeing Chrome make the real request.
Ah, that’s great! I was really having trouble seeing any issue in the curl log and wasn’t sure what other debugging avenues I could explore 😃