This error is little confusing for me. For populating sitemap we are using SXA. Same settings are working on CM server but not on CD server.
Sitemap.xml
show urls but hostname is missing from there. Here is snapshot.
Url => loc
should have host name, but it does not show. It should be something like https://example.com/searchresults
but it misses the hostname.
Both CD
and CM
are on Azure PaaS App service.
targetHostName
set for your site? – Marek Musielak Jun 6 '19 at 8:09