Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Sitemap could not be read: the four causes, and the command that names yours

Search Console's "Sitemap could not be read" is one message for four different failures. That is why the usual advice — resubmit it, wait, resubmit again — works for maybe a quarter of the people who try it. The message means Google fetched the URL you submitted and could not parse it. Nothing about your pages. The four causes below account for every case we have seen across six small static…

The "Sitemap could not be read" message in Google Search Console can indicate four different issues. The usual advice to resubmit the sitemap and wait may only work for a quarter of cases. To identify the specific problem, use the following steps:

1. Check if the file is in the wrong format. Use the command "curl -sS -o sitemap.xml -w '%{http_code} %{content_type}\n' https://example.com/sitemap-index.xml" to request the sitemap and check the content type. If it is text/html, that is the issue.

2. If the index points to a missing child, use "curl -s https://example.com/sitemap-index.xml | grep -o ' loc [^ ]*' | sed 's/ loc //' Fetch each URL that prints" to check for 404 errors.

3. Ensure the sitemap only lists URLs on its host. Use "curl -s https://example.com/sitemap-0.xml | grep -o ' loc [^ ]*' | head -3" to verify the loc lines match your domain. If they do not, that is the cause.

4. Confirm the file size is within limits (50,000 URLs and 50 MB) and uses the correct encoding. If it is too large or compressed improperly, that is the problem.

After identifying the issue, fix the sitemap, deploy the changes, and then resubmit. Remember, a sitemap only serves as a hint, so ensure internal links are properly connecting your pages.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

Building a Cryptographically Verifiable Sports Prediction Ledger (SHA-256 + Brier Score) and Dixon-Coles xG Simulator in Go

Most online sports prediction dashboards suffer from an obvious credibility problem: hindsight editing. Predictions get quietly revised after kickoff, or losing streaks disappear from marketing…

  • Cryptographically verifiable ledger using SHA-256 and Dixon-Coles xG simulator
  • Model probabilities locked before kickoff, hashed with match ID and probabilities
  • Brier Score measures prediction accuracy post-match with 61.65% accuracy rate

I Got Tired of Noisy Terminal Output, So I Built a Tiny CLI in C++

I've been working with different languages and frameworks for years, and there's one thing that has always bothered me a little: how much unnecessary output our development tools produce.

  • Muffle is a lightweight CLI written in C++17 to filter command output
  • Users can run muffle -- npm test to get concise test results
  • Muffle logs complete output to files and preserves original exit codes

More from Saturday 21 November →