← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1193563] Re: Can't print: raise TypeError('Expected bytes') in the logs

 

The fix in the official branches is still incomplete.

** Changed in: ocb-web
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Web).
https://bugs.launchpad.net/bugs/1193563

Title:
  Can't print: raise TypeError('Expected bytes') in the logs

Status in OpenERP Community Backports (Web):
  Fix Released
Status in OpenERP Community Backports (Web) 6.1 series:
  New
Status in OpenERP Web:
  Fix Released

Bug description:
  We have openerp v7 installation. When I'm trying to print any page with the aid of "Print" submenu I obtain following in UI:
   
  Uncaught SyntaxError: Unexpected end of input
  http://erp.npp-alion.ru/?ts=1371848653090#id=6&view_type=form&model=product.product&menu_id=363&action=425:0

  And following in the logs:

  2013-06-22 07:12:50,987 24036 ERROR openerp openerp.addons.web.http.HttpRequest.dispatch: An error occurred while handling a json request
  Traceback (most recent call last):
    File "/usr/openerp/addons/web/http.py", line 285, in dispatch
      r = method(self, **self.params)
    File "/usr/openerp/addons/web/controllers/main.py", line 1767, in index
      cookies={'fileToken': int(token)})
    File "/usr/openerp/addons/web/http.py", line 332, in make_response
      response.set_cookie(k, v)
    File "/usr/lib64/python2.7/site-packages/werkzeug/wrappers.py", line 960, in set_cookie
      self.charset))
    File "/usr/lib64/python2.7/site-packages/werkzeug/http.py", line 905, in dump_cookie
      value = to_bytes(value, charset)
    File "/usr/lib64/python2.7/site-packages/werkzeug/_compat.py", line 106, in to_bytes
      raise TypeError('Expected bytes')
  TypeError: Expected bytes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-web/+bug/1193563/+subscriptions