Sitemap Trailing Slash - Not Found Exception

(from github.com/j-barnes)
When the sitemap.xml file is being crawled, it gets a trailing slash appended to the end which results in a 404 error. Is there a fix for this besides using a rewrite rule for slashes?

Thanks!

(from github.com/marevol)
Could you provide an example of sitemap.xml to reproduce it?

(from github.com/j-barnes)
https://njcourts.gov/sitemap.xml

(from github.com/marevol)
Which url has a problem in it?

(from github.com/j-barnes)
http://njcourts.gov/sitemap.xml/ was appearing in the failure URL. However that was not the issue that was causing the problem. The sitemap was using http://www.example.com, instead of http://example.com. I added it to the “Included URLs for Crawling” and the problem has been fixed. However I am still not sure why it was appearing in the Failure URL List with a slash appended to it.

Thanks again for your help!

(from github.com/marevol)
It do not think it’s a problem about sitemap… The links might be in your site.
You can use Path Mapping to replace xml/ with xml.
To normalize a hostname, see Duplicate Host.