How to Fix “Sitemap Couldn't Fetch” in Search Console
By SimpleTools24Published 4 min read
"Couldn't fetch" in Google Search Console's Sitemaps report means Google couldn't retrieve or read your sitemap file when it tried. Common causes are a wrong sitemap URL, a non-200 HTTP status (404, 403, 5xx or a redirect chain), the file being blocked by robots.txt or a firewall, or content that isn't valid sitemap XML. For newly submitted sitemaps, the status can also show for a while before Google has processed the file, so check the basics, fix anything wrong, and give it time.
In this guide
First: Is It Just New?
A freshly submitted sitemap sometimes shows "Couldn't fetch" even though nothing is wrong, and later changes to "Success". If the file loads correctly in a browser and passes the checks below, wait a few days before changing anything. Resubmitting repeatedly doesn't speed it up.
Check 1: Does the URL Load?
Open the exact URL you submitted in a private browser window:
- 404 Not Found: wrong path or file name. Check for
sitemap.xmlvssitemap_index.xml, or a plugin that moved it. - 403 Forbidden or a login page: the file isn't public.
- Server error (5xx): the server or generator script failed; check hosting logs.
- Redirect: the URL forwards somewhere else. Submit the final URL instead, and make sure it's on the same property.
From a terminal, curl -I shows the status and headers:
curl -I https://example.com/sitemap.xml
# HTTP/2 200
# content-type: application/xmlCheck 2: Is It Blocked by robots.txt?
Open https://example.com/robots.txt and look for a Disallow rule that matches the sitemap path, for example Disallow: /*.xml or a blanket Disallow: /. Use Search Console's robots.txt report to see how Google reads the file. Remove or narrow the rule, then resubmit.
Check 3: Is a Firewall or CDN Blocking Google?
Security services can block or challenge automated requests, including Googlebot. Symptoms: the sitemap loads in your browser but Google can't fetch it. Look for:
- Bot-fight or "under attack" modes on your CDN
- Country blocks or rate limits
- Web application firewall rules that challenge XML or unknown user agents
- Hosting-level bot protection
Check your firewall logs for blocked Googlebot requests, and allow verified search engine crawlers. Use Search Console's URL Inspection → Test live URL on the sitemap URL to see what Google receives.
Check 4: Is the XML Valid?
Google expects a well-formed sitemap. Problems that break parsing:
| Problem | Example | Fix |
|---|---|---|
| HTML instead of XML | A theme page or error page at /sitemap.xml | Make sure the URL serves the real sitemap |
| Unescaped characters | & inside a URL | Escape as & |
| Relative URLs | <loc>/about</loc> | Use absolute URLs with https:// |
| Wrong namespace | Missing xmlns on <urlset> | Use the sitemaps.org 0.9 namespace |
Whitespace or text before <?xml | A blank line or PHP notice output | Remove anything before the XML declaration |
| Too large | More than 50,000 URLs or 50 MB | Split into several sitemaps with an index |
| Wrong encoding | Non-UTF-8 characters | Save and serve as UTF-8 |
A stray PHP warning or a byte-order mark printed before <?xml is a classic cause on self-hosted sites, because the file looks fine in some browsers but isn't valid XML.
Check 5: Is It on the Right Property?
A sitemap URL must belong to the property you submitted it in. Submitting https://example.com/sitemap.xml to a property for https://www.example.com/ can fail, because those are different URL prefixes. A Domain property avoids this mismatch.
Check 6: Are the URLs Inside Correct?
If Google reads the sitemap but reports errors, look at the URLs: are they on the same host, using the right protocol, and canonical? Listing http:// URLs on an https:// site, or URLs on a different subdomain, causes warnings or ignored entries. XML sitemap best practices covers what belongs in the file.
Rebuilding a Clean Sitemap
If your sitemap is generated by an old plugin or script and keeps breaking, replacing it with a clean, static file can be the quickest fix while you investigate. The XML sitemap generator can crawl your public site, or build from a list of URLs you paste, and produces valid XML with absolute, deduplicated URLs, splitting large lists into multiple files with an index. Upload it to your site root, confirm it loads, and resubmit using the steps in how to submit a sitemap to Google Search Console.
After Fixing
- Open the sitemap URL in a browser to confirm it loads as XML.
- Remove the old entry in Search Console if the URL changed, and submit the correct one.
- Wait for the next fetch. "Last read" updates when Google tries again.
Frequently Asked Questions
Does "Couldn't fetch" stop my pages being indexed?
Not necessarily. Google can find pages through links. But fixing the sitemap helps discovery, especially for new or poorly linked pages.
My sitemap opens fine in a browser. Why can't Google fetch it?
Most often a firewall or CDN is blocking crawlers, or there's invisible content before the XML declaration.
Should I delete and resubmit the sitemap?
Only after you've fixed a real problem or if the URL changed. Repeated resubmission doesn't help.
Does a gzip-compressed sitemap work?
Yes. Sitemaps can be served gzipped (sitemap.xml.gz), within the same size limits when uncompressed.
Summary
Confirm the URL returns 200 with valid XML, isn't blocked by robots.txt or a firewall, and belongs to the right property. If everything checks out and the sitemap is new, give Google time to fetch it.
Sources
- Manage your sitemaps using the Sitemaps report – Google Search Console Help (opens in a new tab)
- Build and submit a sitemap – Google Search Central (opens in a new tab)
Related articles
- Submit a Sitemap to GoogleSubmit a sitemap in Search Console, read the report correctly, and make sure Bing and others can find it too.
- XML Sitemap Best PracticesWhat belongs in a sitemap, how to use lastmod, size limits and index files, and the mistakes that weaken it.
- How to Create an XML SitemapWhat goes in a sitemap, the XML format, and three ways to create one, from CMS plugins to crawling and pasting URLs.