Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error while exporting clients list

By
Michael Wassmer
on 1/16/14, 5:18 AM 2,699 views

Hi,

I'm trying to generate an Excel export of my clients list. After selecting the fields and clicking on "Export", I get the following error :

Internal Server Error

{"message": "OpenERP WebClient Error", "code": 300, "data": {"debug": "Client Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/http.py\", line 285, in dispatch\n r = method(self, **self.params)\n File \"/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/controllers/main.py\", line 1627, in index\n cookies={'fileToken': int(token)})\n File \"/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/http.py\", line 332, in make_response\n response.set_cookie(k, v)\n File \"/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/wrappers.py\", line 960, in set_cookie\n self.charset))\n File \"/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/http.py\", line 905, in dump_cookie\n value = to_bytes(value, charset)\n File \"/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/_compat.py\", line 106, in to_bytes\n raise TypeError('Expected bytes')\nTypeError: Expected bytes\n", "type": "client_exception"}}

I have no idea what this means, something about browser cookies ?

EDIT : Here's what the server log says :

[root@xxxxxxx ~]# tail /var/log/messages Jan 20 08:46:30 xxxxxxx �<11>OpenERP Server 7.0-20130624-231051:elyor:ERROR:openerp.addons.web.http.HttpRequest.dispatch:An error occurred while handling a json request#012Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/http.py", line 285, in dispatch#012 r = method(self, **self.params)#012 File "/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/controllers/main.py", line 1627, in index#012 cookies={'fileToken': int(token)})#012 File "/usr/lib/python2.6/site-packages/openerp-7.0_20130624_231051-py2.6.egg/openerp/addons/web/http.py", line 332, in make_response#012 response.set_cookie(k, v)#012 File "/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/wrappers.py", line 960, in set_cookie#012 self.charset))#012 File "/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/http.py", line 905, in dump_cookie#012 value = to_bytes(value, charset)#012 File "/usr/lib/python2.6/site-packages/Werkzeug-0.9.1-py2.6.egg/werkzeug/_compat.py", line 106, in to_bytes#012 raise TypeError('Expected bytes')#012TypeError: Expected bytes Jan 20 08:46:30 xxxxxxx �<14>OpenERP Server 7.0-20130624-231051:elyor:INFO:werkzeug:88.5.232.112 - - [20/Jan/2014 07:46:30] "GET /web/export/xls?data=%7B%22model%22%3A%22res.partner%22%2C%22fields%22%3A%5B%7B%22name%22%3A%22id%22%2C%22label%22%3A%22External+ID%22%7D%2C%7B%22name%22%3A%22active%22%2C%22label%22%3A%22Actif%22%7D%5D%2C%22ids%22%3A%5B162%2C163%2C132%2C133%2C151%2C152%2C158%2C159%2C114%2C115%2C118%2C119%2C131%2C108%2C111%2C197%2C113%2C98%2C122%2C123%2C180%2C135%2C134%2C30%2C31%2C129%2C150%2C127%2C126%2C107%2C198%2C100%2C208%2C125%2C23%2C22%2C101%2C102%2C160%2C161%2C169%2C170%2C185%2C204%2C205%2C145%2C146%2C103%2C95%2C184%2C196%2C58%2C59%2C186%2C171%2C172%2C19%2C20%2C136%2C157%2C188%2C112%2C50%2C45%2C61%2C42%2C62%2C106%2C201%2C210%2C209%2C202%2C148%2C149%2C34%2C92%2C191%2C140%2C189%2C200%5D%2C%22domain%22%3A%5B%5D%2C%22import_compat%22%3Atrue%7D&token=1390203987698&session_id=7138b5b9db414067bf11f72c52cffe52 HTTP/1.1" 500 -

Check your openerp-server log file for detailed description about the error...

Ashmsh.M
on 1/16/14, 7:00 AM

Hi Ashmsh.M, I updated the question with the error log, do you have any idea what it means ?

Michael Wassmer
on 1/20/14, 3:55 AM
0
Marcelo Araujo
On 4/22/14, 4:09 PM

I had the same problem.

Just downgrade your version of python werkzeug library.

Now I' m using version 0.8.1 and the problem has been solved.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/16/14, 5:18 AM
Seen: 2699 times
Last updated: 3/16/15, 8:10 AM