domain/sitemap.xml HTTP Error 500, site matching query does not exist

172 views
Skip to first unread message

dum dum

unread,
Sep 25, 2020, 7:27:17 AM9/25/20
to django...@googlegroups.com
I don't understand this.
In local, when I access 127.0.0.1:8000/sitemap.xml. I can see my xml file.
But in production
domain.com/sitemap.xml gave me this HTTP 500 Error. Site matching query does not exist.

Anyone experienced this?
Please help, thanks!

dum dum

unread,
Sep 26, 2020, 12:57:46 PM9/26/20
to django...@googlegroups.com
I followed the solution on the internet 
by commented django.contrib.sites. But still got the same error.
Please advise. Thanks

Kasper Laudrup

unread,
Sep 26, 2020, 2:20:46 PM9/26/20
to django...@googlegroups.com
Hi Dum Dum,

On 26/09/2020 18.56, dum dum wrote:
> I followed the solution on the internet
> https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r
>
> image.png
> by commented django.contrib.sites. But still got the same error.
> Please advise. Thanks
>

What did you find in your log files?

Kind regards,

Kasper Laudrup

dum dum

unread,
Sep 27, 2020, 1:21:29 AM9/27/20
to django...@googlegroups.com
what do you mean "log files"?
Is that logs in terminal or ?

In my terminal it works normal, no problem at all.
in localhost it works normal, but in production I got http error 500
image.png

I'm using heroku.

Thanks


--
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/ada20960-af21-f42b-700f-40d6c2abccb7%40stacktrace.dk.

RANGA BHARATH JINKA

unread,
Sep 27, 2020, 1:30:34 AM9/27/20
to django...@googlegroups.com
Hi,

    Run heroku logs --tail in terminal
    All the best



--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

dum dum

unread,
Sep 27, 2020, 1:37:17 AM9/27/20
to django...@googlegroups.com
image.png
This is what I got from heroku logs --tail.

Thanks.

RANGA BHARATH JINKA

unread,
Sep 27, 2020, 1:40:47 AM9/27/20
to django...@googlegroups.com
Check the whole logs by going up

dum dum

unread,
Sep 27, 2020, 1:45:18 AM9/27/20
to django...@googlegroups.com
There is nothing wrong with the rest data in the logs. I found only http error 500 when I visited domain.com/sitemap.xml.
It's kinda weird though.
Hmm.. still figuring out the cause of the problem.

Thanks anyway.

dum dum

unread,
Sep 27, 2020, 1:51:43 AM9/27/20
to django...@googlegroups.com
image.png

I was successfully submitted the sitemap in google search console last week, and got discovered urls about 960.. But suddenly, when I tried to resubmitted sitemap.xml again, I got status "couldn't fetch".
The problem is that HTTP Error 500 in production.

In local, I can open sitemap.xml normally 
image.png


Kasper Laudrup

unread,
Sep 27, 2020, 3:45:07 AM9/27/20
to django...@googlegroups.com
>https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com
>>>>>>
><https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks and Regards
>>>>>
>>>>> J. Ranga Bharath
>>>>> cell: 9110334114
>>>>>
>>>>> --
>>>>> 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/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com
>>>>>
><https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com
>>>>
><https://groups.google.com/d/msgid/django-users/CANV3w%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> cell: 9110334114
>>>
>>> --
>>> 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/CAK5m314OwG2fuJ5Qg7PAqfKeaXYCwBZcWQMB9w5yzJfFhvKtCw%40mail.gmail.com
>>>
><https://groups.google.com/d/msgid/django-users/CAK5m314OwG2fuJ5Qg7PAqfKeaXYCwBZcWQMB9w5yzJfFhvKtCw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

What's in your log files?

Dvs Khamele

unread,
Oct 11, 2020, 1:41:59 PM10/11/20
to django...@googlegroups.com, lau...@stacktrace.dk
Hi do you hire contract based python/django freelancer?
We can help you in this and related techincal tasks at fair prices. Reply or send email to div...@pythonmate.com
Best Regards, 
Divyesh Khamele,
Pythonmate


dum dum

unread,
Oct 11, 2020, 2:55:43 PM10/11/20
to django...@googlegroups.com
Hi guys, I solved this problems about week ago.
Turns out that there were conflict of data and codes.
Django sitemap generate something that was not exist.
Such the slug.

Thanks for suggestions and help before.

Reply all
Reply to author
Forward
0 new messages