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.

The page provided is not HTML (served as MIME type ).

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brendankennycommented, Mar 23, 2021

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.

0reactions
brendankennycommented, Mar 23, 2021

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 😃

Read more comments on GitHub >

github_iconTop 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 >

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