JSON RPC not working

Bug #1126180 reported by Parthiv Patel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-client-lib
Invalid
Undecided
Unassigned

Bug Description

I have tried to connect to one of my database using your example, and changed protocol from xmlprc to jsonrpc, but found that it's not working as expected. Getting 404 Error.

connection = get_connection(hostname="localhost",protocol="jsonrpc", database="test_my_db", login="admin", password="admin")
user_model = connection.get_model("res.users")
ids = user_model.search([("login", "=", "admin")])
user_info = user_model.read(ids[0], ["name"])
print user_info["name"]

Cheers,
Parthiv

Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Hello,

Jsonrpc only works in the trunk of OpenERP, so if you are using versions 7.0 or 6.1 it's normal it doesn't work.

I will suppose this was an invalid bug report, but if you can reproduce it with the trunk version of the web branch (revision 3720 or greater), please change the status of the bug report.

Changed in openerp-client-lib:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.