Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math

Content

The Couldn’t fetch error is a confusing status message you may encounter in Google Search Console.

Couldn't fetch error in Google Search Console

The status message may indicate Google is yet to fetch your sitemap. Alternatively, it could mean Google cannot fetch your sitemap because of an error in the sitemap. However, since you cannot tell both apart, it is a good idea to ensure it does not result from an error in your sitemap.

In this knowledgebase article, we will show you how to diagnose and fix any potential sitemap error that may have caused the Couldn’t fetch error in Google Search Console.  

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 Google Search Console, head over to Indexing → Sitemaps. In the Add a new sitemap setting, paste the below sitemap URL and click SUBMIT

https://yourdomain.com/?sitemap=1 

Rename the sitemap file

If the sitemap still returns a Couldn’t fetch error, follow the below steps to ensure the sitemap is set up correctly. 

The next step is to confirm your sitemap is correctly configured. To do that, enter your sitemap URL into the Validate XML Sitemap tool. Once done, click VALIDATE SITEMAP, as shown below.

An example displaying how to validate a sitemap

If your sitemap is correctly configured, the tool will return a No issues detected success message, as shown below. 

An example of a properly configured sitemap

If you manually created the sitemap, ensure it is installed in the root folder of your WordPress installation. That means there should only be one forward slash between your domain name and sitemap path, as shown below. 

https://yourdomainname.com/sitemap_index.xml

Your sitemap will become empty if all your posts are set to noindex. To set your posts to index, head over to Rank Math SEO → Titles & Meta. In the Robots Meta settings, enable the Index checkbox, as shown below.

Index Titles and Meta settings

Once done, scroll down and click Save Changes

Save changes

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

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

Increase links per sitemap

Once done, navigate to Settings → Permalinks and click Save Changes to ensure the current settings are applied.

Flush Permalinks

Once done, the next step is to ensure your sitemap is not being cached. Refer to the following knowledgebase article to ensure that your sitemaps are excluded from caching.

Once you complete these steps, you should submit your sitemap URL to Google Search Console again.

If Google Search Console still returns the Couldn’t fetch error, follow the below steps to continue troubleshooting.

Your site has four possible URL variations:

http://yourdomain.com

http://www.yourdomain.com

https://www.yourdomain.com

https://yourdomain.com

You should ensure you added the correct URL variation to Google Search Console. 

To do that, navigate to Settings → General from your WordPress dashboard. The correct variation of your site will be displayed in the Site Address (URL) field, as shown below.

Site Address in WordPress

The next step is to add this variation as URL property to Google Search Console and verify it, if you haven’t already done so. You can refer to this knowledgebase article on adding a URL property to the Search Console.

Once done, navigate to Indexing → Sitemaps in the Search Console**.** Then, paste the correct sitemap URL in the Add a new sitemap field and click SUBMIT.

Note: Ensure no spaces are in the sitemap URL, as it can prompt a Couldn’t fetch error. 

Add the sitemap to Google Search Console

If the sitemap still returns a Couldn’t fetch error, add a forward slash before the sitemap URL and click SUBMIT

Add a forward slash to the sitemap URL

If the error persists, it appears that Google is yet to fetch the sitemap. You can do nothing but wait for Google to fetch it. This may be deliberate from Google’s end, as Google can find and fetch your URLs without a sitemap. 

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.

Summary
The 'Couldn't fetch' error in Google Search Console can indicate either that Google hasn't yet fetched your sitemap or that there's an error in the sitemap itself. To diagnose and fix this issue, first ensure your sitemap is valid by using a validation tool. If valid but still not functioning, consider renaming the sitemap file. Ensure the sitemap is correctly configured and located in the root folder of your WordPress installation. If your posts are set to 'noindex', change them to 'index' in the Rank Math SEO settings. If the sitemap appears outdated, flush the sitemap cache by adjusting the 'Links Per Sitemap' setting. Additionally, confirm that the correct URL variation of your site is added to Google Search Console. If the error persists, it may be due to Google not fetching the sitemap yet, which can happen as Google can discover URLs without a sitemap. Follow these steps to troubleshoot and resolve the issue, and if problems continue, reach out to support for assistance.