Tech
The Silent Sitemap Bug That Blocked Google From Indexing My Sites
When I checked Google Search Console after a month, only 2 of my 8 sites were indexed. The other 6 had zero pages in Google's eyes. No penalty, no error banner. Just silence.
The bug
My build script generated the sitemap by mapping over page objects. Somewhere a URL field was an object, not a string. So the sitemap shipped lines like:
<url><loc> https://example.com/[object Object] </loc></url>
Google fetched the sitemap, saw garbage URL...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to