急!请教:添加用户又出现internal error,查看log,好像是出现unicodeDecode这里。
-
。。。。。
File "D:\GreenOdoo8\runtime\python\lib\site-packages\simplejson\encoder.py", l
ine 249, in encode
chunks = self.iterencode(o, _one_shot=True)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\simplejson\encoder.py", l
ine 325, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc6 in position 0: invalid c
ontinuation byte
2015-06-13 01:26:39,562 1824 INFO wgo werkzeug: 192.168.1.28 - - [13/Jun/2015 01
:26:39] "POST /web/dataset/call_kw/res.users/create HTTP/1.1" 500 -
2015-06-13 01:26:39,592 1824 ERROR wgo werkzeug: Error on request:
Traceback (most recent call last):
File "D:\GreenOdoo8\runtime\python\lib\site-packages\werkzeug-0.8.3-py2.7.egg<br />werkzeug\serving.py", line 159, in run_wsgi
execute(app)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\werkzeug-0.8.3-py2.7.egg<br />werkzeug\serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "D:\GreenOdoo8\source\openerp\service\server.py", line 285, in app
return self.app(e, s)
File "D:\GreenOdoo8\source\openerp\service\wsgi_server.py", line 216, in appli
cation
return application_unproxied(environ, start_response)
File "D:\GreenOdoo8\source\openerp\service\wsgi_server.py", line 202, in appli
cation_unproxied
result = handler(environ, start_response)
File "D:\GreenOdoo8\source\openerp\http.py", line 1289, in call
return self.dispatch(environ, start_response)
File "D:\GreenOdoo8\source\openerp\http.py", line 1263, in call
return self.app(environ, start_wrapped)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\werkzeug-0.8.3-py2.7.egg<br />werkzeug\wsgi.py", line 411, in call
return self.app(environ, start_response)
File "D:\GreenOdoo8\source\openerp\http.py", line 1434, in dispatch
result = ir_http._dispatch()
File "D:\GreenOdoo8\source\openerp\addons\base\ir\ir_http.py", line 177, in _d
ispatch
return self._handle_exception(e)
File "D:\GreenOdoo8\source\openerp\addons\base\ir\ir_http.py", line 147, in _h
andle_exception
return request._handle_exception(exception)
File "D:\GreenOdoo8\source\openerp\http.py", line 551, in _handle_exception
return self._json_response(error=error)
File "D:\GreenOdoo8\source\openerp\http.py", line 525, in json_response
body = simplejson.dumps(response)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\simplejson_init.py",
line 324, in dumps
return _default_encoder.encode(obj)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\simplejson\encoder.py", l
ine 249, in encode
chunks = self.iterencode(o, _one_shot=True)
File "D:\GreenOdoo8\runtime\python\lib\site-packages\simplejson\encoder.py", l
ine 325, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc6 in position 0: invalid c
ontinuation byte
以上是添加一个用户,中文名,email, 设置各权限(其中财务部是经理,刚才添加用户是没有问题的,于是装了财务和会计模块),正想建个财务经理的用户名,出错了。请问,这个问题如何解决呢?
------ windows XP SP3, GreenopenERP 8.0win32. -
--- 弹出这个窗口,就感到没辙了。
Odoo
XmlHttpRequestError INTERNAL SERVER ERROR
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
---- 安装财务和会计模块之前,添加用户是不出现这样的报错的。