meteozond
@meteozond

EOFError => POST:<could not parse>,?

При заливке файла периодически выдает разным пользователям.



<font color="black">Traceback (most recent call last):<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/sites/blabla_com/files/views.py&quot;</font>, line 82, <font color="#0000ff">in</font> tmp<br/>
  <font color="#0000ff">return</font> f(*args, **kwargs)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/sites/blabla_com/files/views.py&quot;</font>, line 64, <font color="#0000ff">in</font> tmp<br/>
  <font color="#0000ff">return</font> f(*args, **kwargs)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/sites/blabla_com/files/views.py&quot;</font>, line 499, <font color="#0000ff">in</font> upload<br/>
  form = UploadForm(request.POST,request.FILES)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py&quot;</font>, line 171, <font color="#0000ff">in</font> _get_post<br/>
  self._load_post_and_files()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py&quot;</font>, line 137, <font color="#0000ff">in</font> _load_post_and_files<br/>
  self._post, self._files = self.parse_file_upload(self.META, self.environ[<font color="#A31515">'wsgi.input'</font>])<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/__init__.py&quot;</font>, line 124, <font color="#0000ff">in</font> parse_file_upload<br/>
  <font color="#0000ff">return</font> parser.parse()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 192, <font color="#0000ff">in</font> parse<br/>
  <font color="#0000ff">for</font> chunk <font color="#0000ff">in</font> field_stream:<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 314, <font color="#0000ff">in</font> next<br/>
  output = self._producer.next()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 468, <font color="#0000ff">in</font> next<br/>
  <font color="#0000ff">for</font> bytes <font color="#0000ff">in</font> stream:<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 314, <font color="#0000ff">in</font> next<br/>
  output = self._producer.next()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 375, <font color="#0000ff">in</font> next<br/>
  data = self.flo.read(self.chunk_size)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;/usr/lib/python2.6/site-packages/django/http/multipartparser.py&quot;</font>, line 405, <font color="#0000ff">in</font> read<br/>
  <font color="#0000ff">return</font> self._file.read(num_bytes)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;build/bdist.linux-i686/egg/flup/server/fcgi_base.py&quot;</font>, line 161, <font color="#0000ff">in</font> read<br/>
  self._waitForData()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;build/bdist.linux-i686/egg/flup/server/fcgi_base.py&quot;</font>, line 147, <font color="#0000ff">in</font> _waitForData<br/>
  self._conn.process_input()<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;build/bdist.linux-i686/egg/flup/server/fcgi_base.py&quot;</font>, line 673, <font color="#0000ff">in</font> process_input<br/>
  rec.read(self._sock)<br/>
 <font color="#2B91AF">File</font> <font color="#A31515">&quot;build/bdist.linux-i686/egg/flup/server/fcgi_base.py&quot;</font>, line 492, <font color="#0000ff">in</font> read<br/>
  raise EOFError<br/>
EOFError<br/>
<br/>
(&lt;WSGIRequest<br/>
GET:&lt;QueryDict: {}&gt;,<br/>
POST:,<br/>
COOKIES:{},<br/>
META:{<font color="#A31515">'CONTENT_LENGTH'</font>: <font color="#A31515">'168686'</font>,<br/>
 <font color="#A31515">'CONTENT_TYPE'</font>: <font color="#A31515">'multipart/form-data; boundary=---------------------------15329212382'</font>,<br/>
 <font color="#A31515">'HTTP_ACCEPT'</font>: <font color="#A31515">'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'</font>,<br/>
 <font color="#A31515">'HTTP_ACCEPT_CHARSET'</font>: <font color="#A31515">'UTF-8,*'</font>,<br/>
 <font color="#A31515">'HTTP_ACCEPT_ENCODING'</font>: <font color="#A31515">'gzip,deflate'</font>,<br/>
 <font color="#A31515">'HTTP_ACCEPT_LANGUAGE'</font>: <font color="#A31515">'ar,en-us;q=0.7,en;q=0.3'</font>,<br/>
 <font color="#A31515">'HTTP_CONNECTION'</font>: <font color="#A31515">'keep-alive'</font>,<br/>
 <font color="#A31515">'HTTP_CONTENT_LENGTH'</font>: <font color="#A31515">'168686'</font>,<br/>
 <font color="#A31515">'HTTP_CONTENT_TYPE'</font>: <font color="#A31515">'multipart/form-data; boundary=---------------------------15329212382'</font>,<br/>
 <font color="#A31515">'HTTP_HOST'</font>: <font color="#A31515">'www.blabla.com'</font>,<br/>
 <font color="#A31515">'HTTP_KEEP_ALIVE'</font>: <font color="#A31515">'115'</font>,<br/>
 <font color="#A31515">'HTTP_REFERER'</font>: <font color="#A31515">'http://www.blabla.com/'</font>,<br/>
 <font color="#A31515">'HTTP_USER_AGENT'</font>: <font color="#A31515">'Mozilla/5.0 (Windows; U; Windows NT 5.1; ar; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13'</font>,<br/>
 <font color="#A31515">'PATH_INFO'</font>: u<font color="#A31515">'/upload/'</font>,<br/>
 <font color="#A31515">'QUERY_STRING'</font>: <font color="#A31515">''</font>,<br/>
 <font color="#A31515">'REMOTE_ADDR'</font>: <font color="#A31515">'77.64.42.218'</font>,<br/>
 <font color="#A31515">'REMOTE_PORT'</font>: <font color="#A31515">'17539'</font>,<br/>
 <font color="#A31515">'REQUEST_METHOD'</font>: <font color="#A31515">'POST'</font>,<br/>
 <font color="#A31515">'SCRIPT_NAME'</font>: u<font color="#A31515">''</font>,<br/>
 <font color="#A31515">'SERVER_NAME'</font>: <font color="#A31515">'localhost'</font>,<br/>
 <font color="#A31515">'SERVER_PORT'</font>: <font color="#A31515">'80'</font>,<br/>
 <font color="#A31515">'SERVER_PROTOCOL'</font>: <font color="#A31515">'HTTP/1.1'</font>,<br/>
 <font color="#A31515">'wsgi.errors'</font>: &lt;flup.server.fcgi_base.TeeOutputStream <font color="#0000ff">object</font> at 0xa03762c&gt;,<br/>
 <font color="#A31515">'wsgi.input'</font>: &lt;flup.server.fcgi_base.InputStream <font color="#0000ff">object</font> at 0xa4680cc&gt;,<br/>
 <font color="#A31515">'wsgi.multiprocess'</font>: False,<br/>
 <font color="#A31515">'wsgi.multithread'</font>: True,<br/>
 <font color="#A31515">'wsgi.run_once'</font>: False,<br/>
 <font color="#A31515">'wsgi.url_scheme'</font>: <font color="#A31515">'http'</font>,<br/>
 <font color="#A31515">'wsgi.version'</font>: (1, 0)}&gt;,)<br/>
<br/>
<font color="gray">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><font color="gray">Source Code Highlighter</font></a>.</font></font>
  • Вопрос задан
  • 2834 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы