Help

Error when I click "Register" button in event page (Odoo 13, Community Edition)

Closed
Avatar
Flipside

The question has been closed 原由 not enough information given to provide help

by
Ermin Trevisan
2020年07月17日 01时48分28秒

Hello all, 

A couple of weeks ago I used Oddo for an event registration. Everything worked perfectly. 

Today i created a new event and unfortunately when I click the "Register" button in the event's page I get the error:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 229, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo-server/odoo/http.py", line 809, in dispatch
    r = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 318, in _call_function
    raise werkzeug.exceptions.BadRequest(msg % params)
werkzeug.exceptions.BadRequest: 400 Bad Request: <function WebsiteEventController.registration_new at 0x7f2be6b75d08>, /event/i-2020-07-31-5/registration/new: Function declared as capable of handling request of type 'json' but called with a request of type 'http'

Could you please help me on that?


Regards. 

1 备注
头像
丢弃
Avatar
Ermin Trevisan
-

This works out of the box flawlessly. Please check your log entries and provide the necessary context information.

2 答案
0
Avatar
Flipside
Best Answer

Hello Ravi, 

Thank you for your answer.

Here is what i see in Chrome console:


POST http://mydomain/event/i-2020-07-31-5/registration/new 400 (BAD REQUEST)

DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.preload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.postload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Tour Manager is ready.  running_tour=null    web.assets_common_lazy.js:4255


Is this what you asked?

头像
丢弃
0
Avatar
Ravi Gadhia
Best Answer

I think some javascript assets is not loading properly, Do you have any traceback in the browser console?
 it seems the error is due to form post send HTTP request by default if it did not intercept by javascript/jquery 

头像
丢弃