muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

[11.0] Can not preview MS OFFICE - 501 error (solved) #59

Closed kopeyev closed 5 years ago

kopeyev commented 5 years ago

When I try to open document, I got an error PDF.js v1.7.225 (build: 17d135f) Message: Unexpected server response (501) while retrieving PDF

Logs: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 138, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 98, in create_connection raise err File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 88, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 594, in urlopen chunked=chunked) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 361, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.5/http/client.py", line 1107, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request self.endheaders(body) File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders self._send_output(message_body) File "/usr/lib/python3.5/http/client.py", line 934, in _send_output self.send(msg) File "/usr/lib/python3.5/http/client.py", line 877, in send self.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 163, in connect conn = self._new_conn() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 147, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7ff24e5eea20>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send timeout=timeout File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 363, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8090): Max retries exceeded with url: /web/content?csrf_token=5811f80842d732a33ecb5a7fd2861c6f704a9f43o1549368413&filename=demo.docx&model=ir.attachment&download=true&filename_field=name&id=324&field=datas (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff24e5eea20>: Failed to establish a new connection: [Errno 111] Connection refused',))