ampproject / amphtml

The AMP web component framework.
https://amp.dev
Apache License 2.0
14.89k stars 3.89k forks source link

Some validator instances accept BOMs and some don't #11080

Closed namratakwwm closed 7 years ago

namratakwwm commented 7 years ago

Google AMP Search Showing "Sorry this page is Not valid AMP HTML" Error on AMP Pages.

Our website is also facing the same issue, the only change we have done recently is migrated to HTTPS. Before migration it used to work fine.

Please help with the issue.

Story URL: https://www.filmfare.com/photos/farhan-akhtar-and-diana-penty-promote-lucknow-central-at-a-popular-reality-tv-show-23291.html AMP URL: https://m.filmfare.com/photos/farhan-akhtar-and-diana-penty-promote-lucknow-central-at-a-popular-reality-tv-show-23291.amp

jridgewell commented 7 years ago

Is your site somehow related to https://github.com/ampproject/amphtml/issues/11053?

cramforce commented 7 years ago

Could it be that the document starts with a BOM? (Byte order mark) This has recently been discovered as a difference between server side and JS validator.

pravinagham commented 7 years ago

How to check if my link has BOM?

namratakwwm commented 7 years ago

No we are not related to #11053

Gregable commented 7 years ago

It seems OK now.

pravinagham commented 7 years ago

It's working now. Thanks