Django Sitemap on heroku error h13

73 views
Skip to first unread message

dum dum

unread,
Sep 12, 2020, 6:08:13 PM9/12/20
to django...@googlegroups.com
I don't know why,
in local
localhost:8000/sitemap.xml will generate sitemap.xml.

But on heroku, 
domain/sitemap.xml will error h13.

I followed this tutorial 

Any suggestions?
Thanks.

dum dum

unread,
Sep 14, 2020, 1:33:03 AM9/14/20
to django...@googlegroups.com
Update for this case:
I fixed the h13 error by limiting records that I pulled from database. 
I still don't understand yet why heroku gave me that error, maybe because the server spec is not good enough for my data that has lot rows to pulled.
I'm using heroku hobby-basic.

Firefox: 
I open domain/sitemap.xml
sitemap.xml  page generated.

Chrome:
I open domain/sitemap.xml
redirected to "/" as I set for 404 page.

I did:
- Clear cache browsers and clear build cache on heroku.
- try to submit sitemap.xml on google search console in chrome and firefox. The results are the same. 
Couldn't fetch the data. Because it's redirected to "/".

Is anyone here ever experienced something like this?
Please kindly help, this problem got me tinkering around for months.

Thanks

dum dum

unread,
Sep 20, 2020, 11:26:18 PM9/20/20
to django...@googlegroups.com
Anyone has solution for this issue?
Please let me know
Thanks

Omkar Parab

unread,
Sep 21, 2020, 3:40:52 AM9/21/20
to django...@googlegroups.com
Put your code on github. I'll compare with my code. I've done sitemap for my site and it's working. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANV3w%3DZpLr9OhyLQX9_UMWgyS-ZM-B0ViGn%3DdTqfPEpLT1Bfig%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages