Google couldn't fetch my sitemap.xml file


I’ve got a small flask site for my old wow guild and I have been unsuccessful in getting google to read my sitemap.xml file. I was able to successful verify my site using googles Search Console and it seems to crawl it just fine but when I go to submit my sitemap, it lists the status as “Couldn’t fetch”. When I click on that for more info all it says is “Sitemap could not be read” (not helpful)

I originally used a sitemap generator website (forgot which one) to create the file and then added it to my route file like this:


def static_from_root():

    return send_from_directory(app.static_folder, request.path[1:])

If I navigated to it would display the expected results but google was unable to fetch it.

I then changed things around and started using flask-sitemap to generate it like this:


def index():

    yield 'main.index', {}

This also works fine when I navigate directly to the file but google again does not like this.

I’m at a loss. There doesn’t seem to but any way to get help from google on this and so far my interweb searches aren’t turning up anything helpful.

For reference, here is the current sitemap link:


I finally got it figured out. This seems to go against what google was advising but I submitted the sitemap as and that finally worked.

From their documentation:

Use consistent, fully-qualified URLs. Google will crawl your URLs
exactly as listed. For instance, if your site is at, don’t specify a URL as
(missing www) or ./mypage.html (a relative URL).

I think that only applies to the sitemap document itself.

When submitting the sitemap to google, I tried…   

The only format that they were able to fetch the sitemap from was:

Hope this information might help someone else facing the same issue 🙂

Answered By – Hyraxmax

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published