Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server encoding issue #7

Closed
strongliang opened this issue Feb 3, 2017 · 3 comments
Closed

server encoding issue #7

strongliang opened this issue Feb 3, 2017 · 3 comments
Assignees
Labels

Comments

@strongliang
Copy link
Contributor

strongliang commented Feb 3, 2017

input

http://creadr.io:8081/pinyin/%E7%BB%93%E5%B7%B4

error log

209.49.4.114 - - [03/Feb/2017 17:14:22] "GET /pinyin/%E7%BB%93%E5%B7%B4 HTTP/1.1" 200 -
Error on request:
Traceback (most recent call last):
  File "/home/strong/.venv/creadr/lib/python2.7/site-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
  File "/home/strong/.venv/creadr/lib/python2.7/site-packages/werkzeug/serving.py", line 196, in execute
    write(data)
  File "/home/strong/.venv/creadr/lib/python2.7/site-packages/werkzeug/serving.py", line 161, in write
    self.send_response(int(code), msg)
  File "/home/strong/.venv/creadr/lib/python2.7/site-packages/werkzeug/serving.py", line 272, in send_response
    self.wfile.write(hdr.encode('ascii'))
IOError: [Errno 32] Broken pipe
@strongliang strongliang added the bug label Feb 3, 2017
@MMMartt
Copy link
Collaborator

MMMartt commented Feb 3, 2017

I think this is a duplicate of pallets/werkzeug#954 instead of an encoding issue. And it shouldn't terminate the program in a production WSGI server.

@MMMartt
Copy link
Collaborator

MMMartt commented Feb 3, 2017

And discussion here about broken pipe error is pretty good, as I think)

@strongliang strongliang self-assigned this Feb 5, 2017
@strongliang
Copy link
Contributor Author

interesting read. I'll see if I can reproduce it consistently

@MMMartt MMMartt closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants