Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
16790 Lượt xem

Hi, I'm writing my first module for Odoo (v9.0). To do that I installed OS requirements using the package manager and odoo using git. Starting the server I get this output:

ERROR test_00 openerp.http: Exception during JSON request handling.
...
Exception: bus.Bus only string channels are allowed.


I'm not sure why this happens and how to fix, any idea?

The full traceback:

(odoo_test00)vagrant@trusty:~/devel/odoo_test00$ odoo.py --db-filter=test_00 --log-level warn
2015-11-17 11:07:58,610 17343 ERROR test_00 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 599, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 636, in dispatch
result = self._call_function(**self.params)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/vagrant/devel/repos/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 308, in checked_call
result = self.endpoint(*a, **kw)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 887, in __call__
return self.method(*args, **kw)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 465, in response_wrap
response = f(*args, **kw)
File "/home/vagrant/devel/repos/odoo/addons/bus/controllers/main.py", line 36, in poll
raise Exception("bus.Bus only string channels are allowed.")
Exception: bus.Bus only string channels are allowed.
2015-11-17 11:07:58,813 17343 ERROR test_00 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 599, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 636, in dispatch
result = self._call_function(**self.params)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/vagrant/devel/repos/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 308, in checked_call
result = self.endpoint(*a, **kw)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 887, in __call__
return self.method(*args, **kw)
File "/home/vagrant/devel/repos/odoo/openerp/http.py", line 465, in response_wrap
response = f(*args, **kw)
File "/home/vagrant/devel/repos/odoo/addons/bus/controllers/main.py", line 36, in poll
raise Exception("bus.Bus only string channels are allowed.")
Exception: bus.Bus only string channels are allowed.
Ảnh đại diện
Huỷ bỏ

I have the same problem in this version, do you found any solution?

Câu trả lời hay nhất

Did you see [FIX] mail: avoid errors in /longpolling/poll requests at https://github.com/odoo/odoo/commit/d7b7b07f9e9ead98d6ecc3e5ce3dca4d4a4a2b6f ?

Ảnh đại diện
Huỷ bỏ

Done the above fix. but the Same error is coming when dealing with pos multi session. Is there any solution ?

Câu trả lời hay nhất

Try it with:

openerp-server --db-filter=test_00 --log-level warn

or

openerp-gevent


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I'm having the same issue.

Anyone who knows what causes this?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 23
1965
1
thg 11 21
6130
0
thg 7 24
4601
0
thg 10 19
3290
1
thg 11 18
3102