ERP-Ukraine / odoo-rpc-dart

Odoo RPC Library for Dart
MIT License
43 stars 32 forks source link

Session Expired Exception #55

Closed devleul closed 1 month ago

devleul commented 1 month ago

This issue reports the "Odoo Session Expired Exception" encountered during an Odoo operation.

Response

{
  "jsonrpc": "2.0",
  "id": "14678723494e63fbecfdcfa059293a9f258b4c44",
  "error": {
    "code": 100,
    "message": "Odoo Session Expired",
    "data": {
      "name": "odoo.http.SessionExpiredException",
      "debug": "... Traceback details ..."
    },
    "message": "Session expired",
    "arguments": ["Session expired"],
    "context": {}
  }
}

how i call it

 try{
       await client.authenticate(ODOO_DB, ODOO_UserName, ODOO_Password);

      await client.callKw({
        'model': 'request.request',
        'method': 'create',
        'args': [
          {
            ....
          },
        ],
        'kwargs': {}
      });
}