您好我正在與我的django應用程序進行教皇集成。錯誤:[Errno 32]當貝寶回電到python django應用程序時出現壞管道
我使用svn和python 2.6的最新版本的django。
但是,我發現每次當貝寶的沙箱訪問我的通知網址我得到500 [Errno 32]破管我的Django堆棧。
有沒有人有類似的經驗呢?
乾杯,
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 281, in run
self.finish_response()
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 321, in finish_response
self.write(data)
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 417, in write
self._write(data)
File "/usr/lib/python2.6/socket.py", line 318, in write
self.flush()
File "/usr/lib/python2.6/socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 104] Connection reset by peer
----------------------------------------
Exception happened during processing of request from ('216.113.191.33', 21736)
Traceback (most recent call last):
File "/usr/lib/python2.6/SocketServer.py", line 283, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 309, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 562, in __init__
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "/usr/lib/python2.6/SocketServer.py", line 618, in __init__
self.finish()
File "/usr/lib/python2.6/SocketServer.py", line 661, in finish
self.wfile.flush()
File "/usr/lib/python2.6/socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 32] Broken pipe
----------------------------------------
所以有什麼我可以做,以防止這種情況發生? 因爲我正在測試貝寶沙盒,不確定這個症狀會消失,如果我使用貝寶現場設置。 謝謝 – 2010-10-27 01:38:25
另外,我部署這個通過使用uwsgi + nginx,我仍然得到500. – 2010-10-27 01:44:53
@Grace階梯:就像我說的是paypal重置連接,也許你可以編輯你的答案,並添加你用來連接的代碼貝寶,希望這可以幫助! – mouad 2010-10-27 19:59:13