Apparently the PDF printing feature for Invoices, quotations, pickup orders and delivery slips broke (maybe other stuff too).
We have only been using the system as usual, not developing or changing anything in code.
This is what I see on the browser console:
VM319:1 POST http://erp.coolhead.fi/report/download 502 (Proxy Error)
(anonymous) @ VM319:1 get_file @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2819 get_file @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2911 trigger_download @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:3215
(anonymous) @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:3217
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 add @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:505
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 each @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:335
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 Deferred @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:511 then @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 ir_actions_report_xml @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:3216
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2797 do_action @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:1660 do_action @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2892 do_action @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2892 handler @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:1513
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 fireWith @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:509 deferred.(anonymous function) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:511 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 fireWith @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:509
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 fireWith @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:509
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 fireWith @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:509 done @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:899 callback @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:919 XMLHttpRequest.send (async)
(anonymous) @ VM319:1 send @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:916 ajax @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:892
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2803 genericJsonRpc @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2801 jsonRpc @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2803
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2918
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 add @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:505
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 each @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:335
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 Deferred @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:511 then @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 rpc @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2915 call_button @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:1476 call_button @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:1750 do_execute_action @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:1514 on_confirmed @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:2248 exec_action @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:2248
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 fire @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:504 add @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:505
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 each @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:335
(anonymous) @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 Deferred @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:511 then @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:510 execute_action @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:2248 on_click @ web.assets_backend.js.pagespeed.ce.GlGI3VYlhd.js:2248 dispatch @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:600 elemData.handle @ web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:573 VM900:1 Uncaught SyntaxError: Unexpected token T in JSON at position 0
at JSON.parse (<anonymous>)
at HTMLIFrameElement.<anonymous> (web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:2816)
at HTMLIFrameElement.dispatch (web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:600)
at HTMLIFrameElement.elemData.handle (web.assets_common.js.pagespeed.jm.B9eEP-wBvN.js:573)
And this on the error message:
Uncaught SyntaxError: Unexpected token T in JSON at position 0
http://erp.coolhead.fi/web?debug#id=11&view_type=form&model=sale.order&menu_id=244&action=345:1 Traceback: SyntaxError: Unexpected token T in JSON at position 0 at JSON.parse (<anonymous>) at HTMLIFrameElement.<anonymous> (http://erp.coolhead.fi/web/content/252-125aa7e/web.assets_common.js:3038:379) at HTMLIFrameElement.dispatch (http://erp.coolhead.fi/web/content/252-125aa7e/web.assets_common.js:637:451) at HTMLIFrameElement.elemData.handle (http://erp.coolhead.fi/web/content/252-125aa7e/web.assets_common.js:610:173)
We are using Odoo 10.0-20170615 (Community Edition) installed on Amazon from Bitnami's AMI.
wkhtmltox-0.12.4 for linux is installed
This has been working until recently.
The 'Print PDF' feature for invoices of the accounting module works, however the invoice looks different.
Now this is odd... The error went away, if I try to print an invoice for an sales order I was working with when we had the issue it shows a 'simplified version' without header, footer and a simpler body. New invoices are correctly created. Any clues what could have caused this?