Skip to content

Sitemap generation error on browser #43

@okfmohamed

Description

@okfmohamed

To Reproduce

  1. Visit the site: https://mysite.com/sitemap.xml

  2. This error will be shown on the browser:

XML Parsing Error: no root element found
Location: https://mysite.com/sitemap.xml
Line Number 1, Column 1:
  1. Visit the same site: again after waiting for few minutes

  2. This error will be shown in the browser:

error

This page isn’t working www.mysite.com took too long to respond. HTTP ERROR 504

  1. Visit the same site: again (third time) but only after waiting longer (few more minutes)

  2. Now the sitemap will be output correctly on the browser window

Expected behavior

The sitemap file is not always output correctly on the browser window and many times the browser show different errors

Describe the bug

Not sure why this keeps happening but this error is not consistently replicated while probably it has to do with the way the module generates the sitemap keeping in mind that all default configuration settings were used. Also not sure if there is cache setting added by the default settings. No manual command line tasks or cron jobs were used to generate the XML file

Details

Server Operating System:
Ubuntu/nginx

Version of Node.js:
8.9.3

Version of Apostrophe
2.94.1

Version of Apostrophe site map
2.5.0

Additional context:

These errors even though are different each time I visit the browser, were always caused when the browser keeps waiting for the XML sitemap to be generated and after few seconds the browser starts to show all these errors.

This is not consistent and can not always be replicated because the XML sitemap is output correctly on some occasions and on many others is not

Screenshots

504-error-chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions