开发者

Mystery... Faked Referrer Generates 500 Instead of 404 Error

开发者 https://www.devze.com 2023-04-02 06:58 出处:网络
I hope someone can provide some clues.I have begun receiving regular 500 errors from a page that does not exist.Without providing

I hope someone can provide some clues.I have begun receiving regular 500 errors from a page that does not exist. Without providing the entire error page, here are the essentials:

  [Django] ERROR (EXTERNAL IP): Internal Server Error: /sample/

path/calendar.pl

  IOError: request data read error

  'HTTP_REFERER': 'http://mydomain.org/calendar.pl',
  'PATH_INFO': u'/sample/path/calendar.pl',

If I visit the page http://mydomain.org/calendar.pl, I get a 404 error, but the error message referencing the same page generates an internal server (500) error.

QUESTIONS: Should I be concerned? Why do I get a 500 error instead 开发者_运维问答of 404 error? Any suggestions for troubleshooting?

This has been driving me nuts for a few days. Any help is very appreciated.

Thanks


Are you trying to change one of the attributes of request, which are read-only (or at least, should be considered to be read-only"). Are you trying to change request.META['HTTP_REFERER']?


This is still an open bug which might be resolved in v. 1.6.

In the meantime, though, you can use this workaround in your settings.py file.

0

精彩评论

暂无评论...
验证码 换一张
取 消