Getting error in the terminal while printing PDF

Hi Guys ,

I am getting the below error while printing a PDF , Please help

10:35:31 web.1            | 127.0.0.1 - - [01/Dec/2016 10:35:31] "GET /api/method/frappe.utils.print_format.download_pdf?doctype=TC&name=TC00002&format=TC&no_letterhead=0 HTTP/1.1" 200 -
10:35:32 web.1            | 192.168.1.129 - - [01/Dec/2016 10:35:32] "GET /files/final15.jpg HTTP/1.1" 200 -
10:35:32 web.1            | 127.0.0.1 - - [01/Dec/2016 10:35:32] "GET /assets/frappe/css/bootstrap.css HTTP/1.1" 200 -
10:35:32 web.1            | 127.0.0.1 - - [01/Dec/2016 10:35:32] "GET /assets/frappe/css/font-awesome.css HTTP/1.1" 200 -
10:35:32 web.1            | 127.0.0.1 - - [01/Dec/2016 10:35:32] "GET /favicon.ico HTTP/1.1" 404 -
10:35:32 web.1            | 127.0.0.1 - - [01/Dec/2016 10:35:32] "GET /api/method/frappe.utils.print_format.download_pdf?doctype=TC&name=TC00002&format=TC&no_letterhead=0 HTTP/1.1" 200 -
10:35:33 web.1            | Error on request:
10:35:33 web.1            | Traceback (most recent call last):
10:35:33 web.1            |   File "/home/ommi/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
10:35:33 web.1            |     execute(self.server.app)
10:35:33 web.1            |   File "/home/ommi/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py", line 184, in execute
10:35:33 web.1            |     write(data)
10:35:33 web.1            |   File "/home/ommi/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py", line 152, in write
10:35:33 web.1            |     self.send_header(key, value)
10:35:33 web.1            |   File "/usr/lib/python2.7/BaseHTTPServer.py", line 401, in send_header
10:35:33 web.1            |     self.wfile.write("%s: %s\r\n" % (keyword, value))
10:35:33 web.1            | IOError: [Errno 32] Broken pipe
10:36:11 web.1            | 192.168.1.129 - - [01/Dec/2016 10:36:11] "GET /files/final15.jpg HTTP/1.1" 200 -

Try restarting the web browser and clearing its cache.

1 Like

Thanks for the reply @KanchanChauhan . I did and still the same error . This happens while I print a PDF . I even tried updating bench but still the problem persists .

maybe you can try this:
frappe-bench$ ./env/bin/pip install pypdf
frappe-bench$ sudo pip install --upgrade pip
frappe-bench$ bench update

1 Like

Thanks for the reply @komsel2228 . I will try and let you know.