Google search console sitemap couldn't fetch

Have you been trying to add your sitemaps to Google Search Console and Google says “Couldn’t fetch”? You’re not alone!

The first step is to make sure that your sitemap can be fetched, which can be done by entering your sitemap in the URL Inspection tab and Testing Live URL. Just make sure you see “Successful” under Page fetch.

Now that you’ve confirmed your sitemap can actually be fetched, let’s change that status from the infuriating “Couldn’t fetch” to the eye pleasing green, “Success” message.

All you need to do is add a new sitemap and put two forward slashes after the domain, and another trailing forward slash after the .xml. Then just submit your sitemap and enjoy the long awaited successful sitemap submission!

If you have any questions about solving your sitemap fetch error, send us a message, we are happy to help!

The sitemap error “Couldn’t Fetch” that you might come across is most likely a bug with Google Search Console.

Google search console sitemap couldnt fetch

If you happen to encounter this issue on one of your websites, then the following steps we discuss in this knowledgebase article can help you get rid of it.

1 Configure Your Sitemap

First, you need to ensure that you have configured the sitemaps correctly. To do so, please refer to this Rank Math Sitemap configuration tutorial. Upon completion, you can validate your sitemap here: Validate XML Sitemap.

Google search console sitemap couldnt fetch

2 Fix Sitemap Issues

If the sitemap is blank, then you have to make sure that posts/pages/CPTs/Terms exist and are indexable. Content that has been set to no-index is not included in the sitemaps.

Some other sitemap-related issues and their fixes discussed in this KB would be helpful if the sitemaps are not loading correctly in the browser and getting errors on the testing tool.

You can check if your content is indexable from the Rank Math > Titles & Meta.

To check if an individual page/post is indexed or not, go to the post/page, and then in the Advanced tab of Rank Math SEO, you will find the index checkbox. In order to index your post/page, mark the checkbox selected.

Google search console sitemap couldnt fetch

3 Flush the Cache

If it looks like your sitemap is outdated, you need to flush the sitemap cache. To do so, simply navigate to Rank Math > Sitemap Settings.

In this field, increment the Links Per Sitemap and then save your settings by clicking the Save Changes button at the bottom of the page.

Google search console sitemap couldnt fetch

And then navigate to your site’s settings for permalinks – located under Settings > Permalinks and then simply save the changes to ensure the current settings have been properly applied.

Google search console sitemap couldnt fetch

4 Exclude the Sitemap from Caching

Refer to the following knowledgebase article to ensure that your sitemaps are excluded from caching.

5 Check for the Correct Version of the Sitemap

You need to ensure that only one version of the sitemap is available. There is a possibility that there are different versions of your website that are viewable in the browser.

5.1 Check URL Set in WordPress General Settings

a) Ensure that the correct version of your sitemap is submitted to Google. You can check your site settings at WordPress Dashboard >  Settings >  General.

Google search console sitemap couldnt fetch

Sometimes, there are chances that you have the https://domain.com version on your website but submit the http://domain version to Google. Sometimes, www. is prefixed on the website but not to the sitemap URL submitted to Google.

5.2 Ensure Sitemap Is Accessible

Enter all 4 variations of the sitemap in httpstatus.io and check the results.

Google search console sitemap couldnt fetch

Only one of the 4 variations should show a 200 status code. The 3 remaining ones should show 301.

5.3 Decide Which Version (www vs. non-www) You Want to Use

To check which version you should choose (if you don’t know already and have an existing site), running the following search (for your own site, of course) can be useful:

Google search console sitemap couldnt fetch
site:example.com

Then, check which variation of the domain opens:

Google search console sitemap couldnt fetch

This is the version you should likely choose, but it depends on your preference as well, and more than anything else, you need to be consistent.

5.4 Redirect All Three Other Versions to Your Preferred Variation

You need to ensure that the other 3 variations are all redirected to the 4th and final chosen/preferred one. This can be done using both the .htaccess and Nginx methods.

You can read this tutorial of the .htacess method that will help you to redirect non-www to www URLs using the .htaccess file in your public_html folder. Also, you can go through the Nginx method that will help you redirect from the www to non-www variation of your website with Nginx.

6 Rename the Sitemap File

According to John Mueller, if the Sitemaps are valid and still aren’t functioning or couldn’t be read, then changing the name of the Sitemap file can do the magic.

In order to rename the file, you can submit https://domain.com/?sitemap=1 URL instead of the sitemap_index.xml and it will do the same job as that of renaming the sitemap file.

And, that’s it! We hope the above steps have helped you resolve the issue. If you’re still facing the issue or if you have any other questions, please feel free to reach our support team directly from here, and we’re always here to help.

  • i disabled it in Yoast, I read to many people have same probelms, found googlesitemap plugin ,works fine with google webmasters fetching

    If you are receiving the error of ‘Couldn’t Fetch’ for the sitemap in Google, we suggest the following actions:

    1. Clear all your caching from your theme, plugin, server, CDN like CloudFlare or browser. If you are not sure how to clear caching from theme/plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider. To clear the cache from a browser use this guide: https://kb.yoast.com/kb/how-to-clear-my-browsers-cache/.
    2. Delete your sitemap in Google. Doing so will not hurt the SEO of the site. This guide explains more (scroll to the bottom): https://support.google.com/webmasters/answer/183669?hl=en.
    3. Submit the sitemap again. Be sure to submit only sitemap_index.xml and nothing else. This guide explains more: https://kb.yoast.com/kb/submit-sitemap-search-engines/.
    4. Edit your robots.txt to remove any directives specifying your sitemap’s location. This guide explains more: https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/
    5. Monitor the results to see if more pages get indexed

    ​Can you please try the aforementioned suggestions and let us know whether this resolves your issue? ​

    If resubmitting the sitemap does not resolve the warning, it may be due to a bug or issue in Google Search Console. We would recommend first checking the sitemap for any issues in a validator such as https://www.xml-sitemaps.com/validate-xml-sitemap.html, and if no issues are found, we would then recommend checking the sitemap in Google Search Console using the URL Inspection Tool.

    To check whether the sitemap can be fetched using the URL Inspection Tool in Google Search Console you would need to perform the following steps:

      Click on ‘URL Inspection’ in the left hand menu Enter the URL of your sitemap in the entry field Since the sitemap is intentionally set to ‘noindex’, the page will not be in Google’s index. Click the ‘Test Live URL’ button

      After the Live Test is complete, check the ‘Page Fetch’ status which is located under ‘Crawl’

    We also we have a guide on using the URL Inspection Tool feature here: https://kb.yoast.com/kb/fetch-as-googlebot/

    If you continue to experience the ‘Couldn’t Fetch’ error, you can also reach out to Google Search Console support at the following link: https://support.google.com/webmasters/?hl=en#topic=9002753

    This thread has been marked as resolved due to a lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!