Odoo Help


Session expired exception

on 9/25/14, 6:47 AM 1,238 views

  I receive  Session expired  exception  when   use  this code  i don't why ?

webauth = self.url + "/web/session/authenticate"
body = {"jsonrpc":"2.0","method":"call","params {"db":"sdsd","login":"admin","password":"admin","base_location":"","session_id":sid,"context":{}},"id":"r1"} headers = {"Content-Type": "Application/json"}

 resp, content = req.request(webauth, "POST", json.dumps(body), headers)

sid = json.loads(content)['result']['session_id']

webauth = self.url + "/web/dataset/call_button"

body = {"jsonrpc":"2.0","method":"call","params":{"model":"ir.module.module","method":"button_immediate_install", "domain_id":None,"context_id":1,
"args":[[175],{}], "session_id":sid, "context":{"lang":"en_US","tz":False,"uid":1}}, "id":"r104"}


i got  Session expired   why   ? 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/25/14, 6:47 AM
Seen: 1238 times
Last updated: 3/16/15, 8:10 AM