1

我的网站是一个 Intranet,每天有数百次点击。问题是 django 崩溃了几次,我收到了这个回溯错误:

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 105, in get_response
    response = middleware_method(request, callback, callback_args, callback_kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py", line 200, in process_view
    request_csrf_token = request.POST.get('csrfmiddlewaretoken', '')

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 210, in _get_post
    self._load_post_and_files()

  File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 284, in _load_post_and_files
    self._post, self._files = QueryDict(self.raw_post_data, encoding=self._encoding), MultiValueDict()

  File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 248, in _get_raw_post_data
    self._raw_post_data = self.read(content_length)

  File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 296, in read
    return self._stream.read(*args, **kwargs)

IOError: request data read error

相关信息是,在程序崩溃的所有时候,我都在调试数据上发现了这一点:

 'HTTP_USER_AGENT': 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9300; es) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.668 Mobile Safari/534.8+',
 'HTTP_X_RIM_HTTPS': '1.1',
 'HTTP_X_WAP_PROFILE': '"http://www.blackberry.net/go/mobile/profiles/uaprof/9300_edge/6.0.0.rdf"',

登录表单中的应用程序崩溃。一些想法?

4

1 回答 1

1

正如您可能认为的那样,这不是 django 错误。

https://groups.google.com/group/django-users/browse_thread/thread/946936f69c012d96

我自己有错误(但只有 IE ajax 请求,没有文件上传,只是发布数据)。

如果我知道如何解决这个问题,我会添加一个完整的答案。

REF: IOError: 请求数据读取错误

于 2012-10-18T07:38:52.740 回答