Error while printing an invoice

56 views
Skip to first unread message

Armand Mpassy-Nzoumba

unread,
Jan 31, 2017, 12:23:49 PM1/31/17
to Tryton List
Dear community,

I am getting the following error when I try  to print an invoice:

Error: <ProtocolError for localhost:8000/test1/: 500 INTERNAL SERVER ERROR>

I am working on the following installation:
OpenSuse Leap 42.1
Tryton Client 4.04

I have installed Tryton from the OpenSuse web site and it is working so far very well. 
I search through the bugs database and I tried one solution:
To replace the invoice.odt file from my installation with the one from the tryton web site. It was worse.

Thank you for your assistance,

Armand

Sergi Almacellas Abellana

unread,
Feb 1, 2017, 3:16:10 AM2/1/17
to try...@googlegroups.com
El 31/01/17 a les 18:23, Armand Mpassy-Nzoumba ha escrit:
> Dear community,
>
> I am getting the following error when I try to print an invoice:
>
> Error: <ProtocolError for localhost:8000/test1/: 500 INTERNAL SERVER ERROR>

Could you attach the server logs to provide more information. This will
provide more information to us in order to give a better advice. You
should execute the server using the --verbose flag in order to get this
printed to stdout.
>
> I am working on the following installation:
> OpenSuse Leap 42.1
> Tryton Client 4.04
>
> I have installed Tryton from the OpenSuse web site and it is working so
> far very well.
> I search through the bugs database and I tried one solution:
> To replace the invoice.odt file from my installation with the one from
> the tryton web site. It was worse.

If you do so, please ensure you are using the correct branch, as the
report may have changed for newer branches.
>
> Thank you for your assistance,
>
> Armand
>
> --
> You received this message because you are subscribed to the Google
> Groups "tryton" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tryton/CAGb%2BB3cHCtNM97SC56aKvj1TFBc8-5GHP1xZcghLwKDupJFLJw%40mail.gmail.com
> <https://groups.google.com/d/msgid/tryton/CAGb%2BB3cHCtNM97SC56aKvj1TFBc8-5GHP1xZcghLwKDupJFLJw%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Armand Mpassy-Nzoumba

unread,
Feb 2, 2017, 5:46:27 PM2/2/17
to Tryton List
Dear Sergi

On Wed, Feb 1, 2017 at 9:16 AM, Sergi Almacellas Abellana <se...@koolpi.com> wrote:

Could you attach the server logs to provide more information. This will provide more information to us in order to give a better advice. You should execute the server using the --verbose flag in order to get this printed to stdout.

Thanks for your guidance:

Here is the server logs:

5813 140640784480000 [2017-02-02 19:45:12,845] ERROR werkzeug Error on request:
Traceback (most recent call last):
 File "/usr/lib64/python3.4/site-packages/werkzeug/serving.py", line 193, in run_wsgi
   execute(self.server.app)
 File "/usr/lib64/python3.4/site-packages/werkzeug/serving.py", line 181, in execute
   application_iter = app(environ, start_response)
 File "/usr/lib64/python3.4/site-packages/werkzeug/wsgi.py", line 599, in __call__
   return self.app(environ, start_response)
 File "/usr/lib/python3.4/site-packages/trytond/wsgi.py", line 90, in __call__
   return self.wsgi_app(environ, start_response)
 File "/usr/lib/python3.4/site-packages/trytond/wsgi.py", line 80, in wsgi_app
   response = cls.response(data, request)
 File "/usr/lib/python3.4/site-packages/trytond/protocols/jsonrpc.py", line 160, in response
   return Response(json.dumps(response, cls=JSONEncoder),
 File "/usr/lib64/python3.4/site-packages/simplejson/__init__.py", line 397, in dumps
   **kw).encode(obj)
 File "/usr/lib64/python3.4/site-packages/simplejson/encoder.py", line 275, in encode
   chunks = self.iterencode(o, _one_shot=True)
 File "/usr/lib64/python3.4/site-packages/simplejson/encoder.py", line 357, in iterencode
   return _iterencode(o, 0)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 11: invalid start byte
5813 140640784480000 [2017-02-02 19:45:12,853] INFO trytond.protocols.dispatcher <class 'trytond.pool.account.invoice.line'>.read(*(
[176, 172, 173, 174, 175], ['product', 'unit_digits', 'description', 'sequence', 'invoice_type', 'company', 'account', 'unit_price',
'currency_digits', 'currency', 'amount', 'product_uom_category', 'taxes', 'invoice', 'party', 'type', 'unit', 'quantity', 'product.
rec_name', 'company.rec_name', 'account.rec_name', 'currency.rec_name', 'product_uom_category.rec_name', 'invoice.rec_name', 'party.
rec_name', 'unit.rec_name', 'rec_name', '_timestamp'], {'locale': {'date': '%d.%m.%Y', 'decimal_point': ',', 'thousands_sep': ' ', '
grouping': [3, 0]}, 'date_format': '%d.%m.%Y', 'company': 1, 'company.rec_name': 'ECKANKAR CONGO', 'language': 'fr_FR', 'employee':
None, 'company_work_time': {'h': 3600, 'M': 576000.0, 'd': 28800.0, 'Y': 6912000.0, 'm': 60, 'w': 144000.0, 's': 1}, 'type': 'out',
'language_direction': 'ltr', 'groups': [26, 25, 24, 1, 5, 13, 16, 8, 28, 2, 7, 14, 6, 10, 3, 9, 29, 4, 30, 21, 27, 15, 17, 31, 19, 2
2, 11, 12, 20, 18, 23]}), **{}) from admin@::ffff:127.0.0.1//eckankarcongo2/
5813 140640784480000 [2017-02-02 19:45:12,933] INFO werkzeug ::ffff:127.0.0.1 - - [02/Feb/2017 19:45:12] "POST /eckankarcongo2/ HTTP
/1.1" 200 -


In summary, I get the following errors:

ERROR werkzeug Error on request

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 11: invalid start byte 

Kind regards,

Armand



Sergi Almacellas Abellana

unread,
Feb 3, 2017, 6:53:32 AM2/3/17
to try...@googlegroups.com
El 02/02/17 a les 23:46, Armand Mpassy-Nzoumba ha escrit:
> admin@::ffff:127.0.0.1//eckankarcongo2/ <http://127.0.0.1//eckankarcongo2/>
> 5813 140640784480000 [2017-02-02 19:45:12,933] INFO werkzeug
> ::ffff:127.0.0.1 - - [02/Feb/2017 19:45:12] "POST /eckankarcongo2/ HTTP
> /1.1" 200 -
>

It seems a bug related to python3, could you please fill an issue?

Thanks.

Armand Mpassy-Nzoumba

unread,
Feb 3, 2017, 12:06:32 PM2/3/17
to Tryton List
Dear Sergi,

On Fri, Feb 3, 2017 at 12:53 PM, Sergi Almacellas Abellana <se...@koolpi.com> wrote:

It seems a bug related to python3, could you please fill an issue?

Thanks.

Well noted with thanks,

Armand 
Reply all
Reply to author
Forward
0 new messages