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 ? openerp.addons.web.http.JSONRequest.dispatch: An error occured while handling a json request

By
Odoo
on 8/11/14, 5:34 AM 1,294 views

Hi,

Please check this error for ,When I install openerp in centos 5 version it gets this error why? also add my error log

2014-08-11 09:26:11,981 13743 ERROR ? openerp.addons.web.http.JSONRequest.dispatch: An error occured while handling a json request
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 773, in create
    params['db_lang'],
KeyError: 'db_lang'
2014-08-11 09:26:11,984 13743 INFO ? werkzeug: 117.247.184.138 - - [11/Aug/2014 09:26:11] "POST /web/database/create HTTP/1.1" 200 -
2014-08-11 09:25:16,696 13743 INFO ? werkzeug: 117.247.184.138 - - [11/Aug/2014 09:25:16] "POST /web/database/get_list HTTP/1.1" 200 -
2014-08-11 09:26:11,981 13743 ERROR ? openerp.addons.web.http.JSONRequest.dispatch: An error occured while handling a json request
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 773, in create
    params['db_lang'],
KeyError: 'db_lang'

 

0

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
On 1/11/16, 2:05 AM

Dep,

While creating the database, did you selected the language? try creating a new DB with the language selected, as this error comes because of missing language attribute while DB creation.

Hope it helps!

anyway it should have came as a default, but due to some reason, it might not be there, try looking for it!

Pawan
on 1/11/16, 2:07 AM
0
Yogesh
On 1/9/16, 7:57 PM

I didn't bother to check what was reason, but I did work around by replacing params['db_lang'], in /opt/odoo/odoo-server/addons/web/controllers/main.py in  create() (line no 702 in my case)  with 'en_US'.

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: 8/11/14, 5:34 AM
Seen: 1294 times
Last updated: 1/11/16, 2:05 AM