yari icon indicating copy to clipboard operation
yari copied to clipboard

XML Sitemap files are invalid

Open a-kyne opened this issue 3 years ago • 4 comments

Summary

Although the Sitemap index file is valid ( https://developer.mozilla.org/sitemap.xml), none of the three XML files it links to are valid.

URL

https://developer.mozilla.org/sitemaps/fr/sitemap.xml.gz
https://developer.mozilla.org/sitemaps/en-us/sitemap.xml.gz
https://developer.mozilla.org/sitemaps/ja/sitemap.xml.gz

Reproduction steps

  1. Try to open the file, or use an XML validator.

Expected behavior

XML file should open

Actual behavior

Encoding error

Device

Laptop

Browser

Firefox

Browser version

Stable

Operating system

Windows

Screenshot

image

Anything else?

Google Search Console records that they visited the XML files earlier today and were able to read them, so this probably happened recently?

Also, I opened an issue for this Kuma, I assume that was incorrect?

Validations

a-kyne avatar Jul 13 '22 18:07 a-kyne

This is a gzipped file, please download this URL and unzip it.

yin1999 avatar Jul 15 '22 12:07 yin1999

@yin1999 I have tried to unzip the files; unzipping does not help. I have asked others to also download and unzip the file, and they have also experienced XML parsing errors.

a-kyne avatar Jul 15 '22 13:07 a-kyne

if you are using linux, try gzip -d <filename>, or if you are using windows, try 7-Zip or other software. I can decompress those file

yin1999 avatar Jul 15 '22 13:07 yin1999

@yin1999 Son of a gun. Today it works. Just FYI, yesterday three members of the Websites team also tried to open the files and also got errors. I don't know why yesterday the file had encoding errors and today it doesn't. Thanks for responding so quickly, though.

a-kyne avatar Jul 15 '22 13:07 a-kyne

I just verified that the sitemap is working as expected:

  1. Opened https://developer.mozilla.org/sitemap.xml
  2. Downloaded sub-sitemap https://developer.mozilla.org/sitemaps/en-us/sitemap.xml.gz
  3. Ran gunzip sitemap.xml.gz.
  4. Opened the resulting sitemap.xml in Firefox.
  5. Didn't see any validation errors.

caugner avatar Aug 22 '22 12:08 caugner