错误:[Errno 32]坏了的管道django [英] error: [Errno 32] Broken pipe django

查看:190
本文介绍了错误:[Errno 32]坏了的管道django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时当我看着终端时,看到以下错误,有人可以让我知道它正在显示以及如何避免它吗?

Sometimes when i look at my terminal, i am seeing the below error, can anyone please let me know y it is displaying and how to avoid it ?

Exception happened during processing of request from ('127.0.0.1', 39444)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/comp/Envs/proj/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 150, in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
    self.wfile.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

推荐答案

由于以下两个原因,导致出现此错误.由于其他原因,您可能会看到相同的问题

You get that error due two of the following reasons. You might see the same issue due to other reasons

1-您在网址末尾缺少/,可以通过在请求的网址末尾添加"/"来解决此问题

1-You're missing / at the end of your url and you can fix it by fixed by added "/" to the end of the URL you request

2-您提出了一些请求,然后迅速将其停止.就像呼叫一个URL,然后取消呼叫并呼叫另一个URL.检查您在哪里进行调用(JavaScript或后端),并确保在不取消的情况下调用该URL.

2-You make some requests then quickly stop it. Like calling a url then cancelling the call and call another url. Check where do you make your calls (JavaScript or backend) and make sure you call the url without cancelling it.

这篇关于错误:[Errno 32]坏了的管道django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆