I am using xmlrpc, I need to reset the user password from mobile app but I faced the error below:
Function declared as capable of handling request of type 'json' but called with a request of type 'http'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am using xmlrpc, I need to reset the user password from mobile app but I faced the error below:
Function declared as capable of handling request of type 'json' but called with a request of type 'http'
The error message "Function declared as capable of handling request of type 'json' but called with a request of type 'http'" is related to the way the function is being called and the type of request it is expecting.
When you use the xmlrpc library in Odoo, you are able to call the server's methods using the JSON-RPC protocol, which is a lightweight remote procedure call (RPC) protocol encoded in JSON. However, the error message suggests that the function you are trying to call is expecting a request of type 'json' while you are calling it with a request of type 'http'.
One possible solution to this issue is to make sure that you are using the correct protocol when calling the function. For example, if the function is expecting a JSON-RPC request, you should use the jsonrpc library to call the function, instead of using xmlrpc. Also, you can check the documentation of the function you are trying to call, and make sure that the request type is supported.
Another solution is to check the route of the function and make sure that the route accepts 'http' request, and if not, you can add the route to accept 'http' requests.
It is also recommended to check the version of the Odoo, as some versions of Odoo have different ways of handling the requests.
If none of the above solutions work, you can check the server logs for error messages that might indicate the problem
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
lug 24
|
3745 | ||
|
1
dic 22
|
2606 | ||
External API's
Risolto
|
|
1
giu 22
|
3589 | |
|
3
gen 23
|
7478 | ||
|
1
mar 22
|
5351 |