Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

My Odoo instance is unable to redirect to my domain . com/web/callback for validation whenever an external app is trying to connect connect with my Odoo16 CE and it returns following error.
Please advise how to fix.
Traceback (most recent call last): File "/opt/odoo16/odoo/odoo/http.py", line 1549, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/opt/odoo16/odoo/odoo/service/model.py", line 134, in retrying result = func() File "/opt/odoo16/odoo/odoo/http.py", line 1578, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/odoo16/odoo/odoo/http.py", line 1691, in dispatch return self.request.registry['ir.http']._dispatch(endpoint) File "/opt/odoo16/odoo/addons/website/models/ir_http.py", line 227, in _dispatch response = super()._dispatch(endpoint) File "/opt/odoo16/odoo/odoo/addons/base/models/ir_http.py", line 140, in _dispatch result = endpoint(**request.params) File "/opt/odoo16/odoo/odoo/http.py", line 673, in route_wrapper result = endpoint(self, *args, **params_ok) TypeError: Authorize2.get_authorized_url() missing 2 required positional arguments: 'code' and 'realmId'


Avatar
Buang
Penulis

Will you please guide how to fix? I suspect that problem is in redirect URI which is ending with web oblique callback of my domain  for validation. I am registering an external app with Odoo 16 community. Certain website suggest that we web oblique callback service is available in EE only. I am not a developer but just a user trying to communicate with outside resources from Odoo. 

Jawaban Terbai

Hi,

The error message you provided, indicates that there is an issue with calling the get_authorized_url() method from the Authorize2 class or object. The method is missing two required arguments: 'code' and 'realmId'.This error typically occurs when you try to call a method that expects certain parameters, but you fail to provide them. In this case, the get_authorized_url() method requires two arguments: 'code' and 'realmId', which seem to be essential for its functionality.To resolve this error, you need to make sure you are providing the correct arguments when calling the get_authorized_url() method. The specific values you should pass for 'code' and 'realmId' depend on the requirements of the method and the context of your code.
Please ensure that you give the method as follows, If Authorize2` is the class or object
code = "your_code_value"
realmId = "your_realm_id_value"
authorized_url = Authorize2.get_authorized_url(code, realmId)

Hope it helps

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mei 25
5078
1
Jun 25
897
1
Agu 24
2330
0
Okt 21
3285
4
Sep 20
12551