Community mailing list archives

community@mail.odoo.com

Re: ODOO Invoice PDF generation end up with "bad request syntax"

by
erwin.tandjung
- 08/16/2015 22:39:46
have you tried to switch back to HTTP ? not HTTPS...

On Mon, Aug 17, 2015 at 2:23 AM, Andreas Santoro <Andreas.Santoro@pentlandfirth.com> wrote:
Hi all,

I really have no idea anymore where the issue come from:
The issue seamed to occur 2 weeks ago after an upgrade of odoo.

Issue:
A before perfectly working invoice template is now showing only the content. 
No header, and the footer is not well formated.
I checked all the tickets based on wrong wkhtmltopdf versions. 

System:
Ubuntu 14.04 LTS
Odoo 8.0.20150816
Wkhtmltopdf 0.12.1

I tried with older versions of odoo, and all versions of wkhtmltopdf. I also checked different NodeJS versions.

I can open the html version of the page 
https://[server]/de_DE/report/html/account.report_invoice/882

If i switch to PDF i get an 
https://[server]/de_DE/report/pdf/account.report_invoice/882

LOGFILE:

2015-08-16 18:14:13,574 5573 INFO pentlandfirth openerp.modules.loading: loading 104 modules...

2015-08-16 18:14:13,579 5573 INFO pentlandfirth passlib.registry: registered crypt handler 'pbkdf2_sha512': <class 'passlib.handlers.pbkdf2.pbkdf2_sha512'>

2015-08-16 18:14:13,579 5573 INFO pentlandfirth passlib.registry: registered crypt handler 'md5_crypt': <class 'passlib.handlers.md5_crypt.md5_crypt'>

2015-08-16 18:14:13,774 5573 INFO pentlandfirth openerp.modules.loading: 104 modules loaded in 0.20s, 0 queries

2015-08-16 18:14:14,803 5573 INFO pentlandfirth openerp.modules.loading: Modules loaded.

2015-08-16 18:14:14,808 5573 INFO pentlandfirth openerp.addons.base.ir.ir_http: Generating routing map

2015-08-16 18:14:26,589 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:26] "POST /web/action/load HTTP/1.1" 200 -

2015-08-16 18:14:26,983 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\x1f?\x07\xce-\xe8\xf9\xb22\x82}\xcb+\x19\xa6b\xaa\x1e\xc8\xbfv\x90\x04kX\xd1\xd1\xa3')

2015-08-16 18:14:26,983 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\x15pK\xe1\xec,\x96#}Y4|[\x8c\xf7\xec\xea\x1f\xb1\xff\xab\x03\xd3:\x04\xffs\xb6\xd0\x89\x8c\xba\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,984 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""??-???2?}?+?b?ȿv?kX?ѣ

                                                                                                          O?3??0?,?(?$??" 400 -

2015-08-16 18:14:26,984 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\x92\x8c\xaa\x04\xfb\xd8q\x9a\x91\x85\xe9\x81\xbfJn\xb6\xf8\xd5\x01$z\xa6\xd8\xa6\x90.\x08\x10\x04\xa6\xb4\xde\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,986 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""?????q???避Jn???$z?ئ??????0?,?(?$??" 400 -

2015-08-16 18:14:26,983 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xdcE>\xb2\xab\x9d\x8a\xdd\x15\xd4\xbe\xbf\xb28\x8f\xd9&4HJg\xb4\x1aB\x8d\xd1R\xe4+\x97A\x97\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,986 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03DRX\xc4\x1e\xb24H\xb5\xe9#\x07n\x85B"UdP7\xd8\xd2\xe8bc\x9f\x01\xff\x11"\xffS\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,987 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""pK??,?#}Y4|[????????:?s?Љ????0?,?(?$??" 400 -

2015-08-16 18:14:26,988 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03Og\xd6V\xe9vMS#\xe4')

2015-08-16 18:14:26,988 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""?E>?????Ծ??8??&4HJg?B??R?+?A???0?,?(?$??" 400 -

2015-08-16 18:14:26,989 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""DRX??4H??#n?B"UdP7???bc??"?S??0?,?(?$??" 400 -

2015-08-16 18:14:26,989 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""Og?V?vMS#?

                                                                                               e??ž?=?D?>??dk?X??0?,?(?$??" 400 -

2015-08-16 18:14:26,991 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xd2\x91b\xb0\xf1\xd5\xc02F\xbe\xdc')

2015-08-16 18:14:26,992 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""ґb????2F??

                                                                                               ??K?`jB????????-???0?,?(?$??" 400 -

2015-08-16 18:14:26,993 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xee\xf0\x84\xecN4\xef\xc6-\xf2\xefob\xe8\xe1\xbb\xa3h\x89\xdf\xab\xc6,\xc3\xe0\'\xb4\xbd\x17\xc1\xdd*\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,996 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""????N4??-??ob?ợh?߫?,??'????*??0?,?(?$??" 400 -

2015-08-16 18:14:26,993 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\x01\x07\x83\xa0\xab\xe5\xa2N\xf2\x19\x84\xe4\xf4Y\x81\x15\x1b\xea\x16e\x83\xb9\xaf\xf3\x83\xc3\xa6\xcc\x91>\x92\x8a\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:26,997 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:26] ""????N????Y?e????æ̑>????0?,?(?$??" 400 -

2015-08-16 18:14:27,219 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xf0fv\x9c\xaa\xad\xc9\xe0\x15')

8?l~?+w??Y?Y!?????0?,?(?$??" 400 -? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""?fv?????

2015-08-16 18:14:27,220 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad request version ('\xf7{\'\xe4\xefK\xdc\x0e\xbeR\xb7U\x94"Tq"z\xfc\xda\x04\xe9\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:27,220 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03XQG8\xdeZ2`\xc3\xb2\xe3A\xe5\x9e9\x86\xf2u\xa7\xa6\xa1\x08\xff\x01\xa1\x83\x91\x06;\x9a')

2015-08-16 18:14:27,220 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x036d&\x92\xba\xa3\xc9\x7f\xd0\xa2#\x9d\xc3\x11\x18\xaf\x14M\xa0kd\x0f\x87\xf2\xf2\xe3D_6\xc4m\xad\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:27,222 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""???

?{'??K??R?U?"Tq"z?????0?,?(?$??" 400 -                                                  ?!X_

2015-08-16 18:14:27,223 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03i\xa0\xb9\x83!z\xdd\xc3G\xb5\xd9\xac\x9c\xfe\xe8\x86}\xe5>a')

2015-08-16 18:14:27,225 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""i???!z??G?٬???}?>a ?E??4?9?a???0?,?(?$??" 400 -

2015-08-16 18:14:27,223 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""6d&????Т#???M?kd????D_6?m???0?,?(?$??" 400 -

2015-08-16 18:14:27,224 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\x82\x02\x8c\xb79LUL\\\xe7\xae\xa0\x90\xa5\x06\xbbC\xd5\x14\xfb~\xfc\xa3\xc2A2\xb9\x92\x1b\x87C\xe5\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:27,226 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""???9LUL\箠???C??~???A2??C???0?,?(?$??" 400 -

t??0?,?(?$??" 400 -,223 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""XQG8?Z2`ò?A?9??u??????;?

2015-08-16 18:14:27,225 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xcb\xf6s\xb2\xa9-R\xab\x82$H$\x90v6(b\xae\x06N\xda\x03\x0e9M^')

2015-08-16 18:14:27,227 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""??s??-R??$H$?v6(b?N?9M^

                                                                                                            OoW?"??0?,?(?$??" 400 -

2015-08-16 18:14:27,228 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xa4\xc1V\xb5\xb9uVR\xc9m(\xe7L\x8f\x06&\xeeD\x12_\x17\xf9\x87\xa9%\x112\x9dE\xf4\xa5"\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:27,228 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""??V??uVR?m(?L?&?D_???%2?E??"??0?,?(?$??" 400 -

2015-08-16 18:14:27,229 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03\xef\xcaFZ')

2015-08-16 18:14:27,229 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""??FZ #$+^CUc??<9?hG???n?k?Mn????0?,?(?$??" 400 -

2015-08-16 18:14:27,229 5573 ERROR ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] code 400, message Bad request syntax ('\x16\x03\x01\x01"\x01\x00\x01\x1e\x03\x03_\xac\xab\xba\xe0\xf3\xac\xd3\x1dTT\x11\x9e\x92\xd0WT\x97\x96\xf9\xb7\xc1`&\x96\x88\xa7L5\x05x\xd2\x00\x00\x88\xc00\xc0,\xc0(\xc0$\xc0\x14\xc0')

2015-08-16 18:14:27,229 5573 INFO ? werkzeug: 127.0.0.1 - - [16/Aug/2015 18:14:27] ""_??????TT???WT?????`&???L5x???0?,?(?$??" 400 -

2015-08-16 18:14:27,547 5573 INFO pentlandfirth openerp.addons.report.models.report: The PDF document INVSAJ20140001.pdf is now saved in the database

2015-08-16 18:14:27,549 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /report/download HTTP/1.1" 200 -

2015-08-16 18:14:27,682 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.invoice/search_read HTTP/1.1" 200 -

2015-08-16 18:14:27,760 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.1" 200 -

2015-08-16 18:14:27,803 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.invoice.line/read HTTP/1.1" 200 -

2015-08-16 18:14:27,811 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.invoice/read_followers_data HTTP/1.1" 200 -

2015-08-16 18:14:27,830 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.tax/name_get HTTP/1.1" 200 -

2015-08-16 18:14:27,849 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.invoice.tax/read HTTP/1.1" 200 -

2015-08-16 18:14:27,947 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/call_kw/account.move.line/read HTTP/1.1" 200 -

2015-08-16 18:14:27,963 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:27] "POST /web/dataset/search_read HTTP/1.1" 200 -

2015-08-16 18:14:28,006 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:28] "POST /web/dataset/call_kw/mail.message/message_read HTTP/1.1" 200 -

2015-08-16 18:14:28,054 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:14:28] "POST /web/dataset/call_kw/mail.message/set_message_read HTTP/1.1" 200 -

2015-08-16 18:15:05,087 5573 INFO pentlandfirth werkzeug: 192.168.120.20 - - [16/Aug/2015 18:15:05] "POST /longpolling/poll HTTP/1.1" 200 -


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Best Regards

Erwin Tanjung