在浏览器中使用graphiql时,它的作品。但在邮递员中使用时无法获取。如果有办法从该模块获取授权令牌,如何通过请求传递授权令牌
{
"jsonrpc": "2.0",
"id": null,
"error": {
"code": 100,
"message": "Odoo Session Expired",
"data": {
"name": "odoo.http.SessionExpiredException",
"debug": "Traceback (most recent call last):\n File "/home/ssd-01/Documents/Projects/school_bus /odoo/http.py", line 619, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File "/home/ssd-01/Documents/Projects/school_bus/odoo/http.py", line 309, in _handle_exception\n raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])\n File "/home/ssd-01/Documents/Projects/school_bus/odoo/tools/pycompat.py", line 14, in reraise\n raise value\n File "/home/ssd-01/Documents/Projects/school_bus/addons/http_routing/models/ir_http.py", line 443, in _dispatch\n cls._authenticate(func.routing['auth'])\n File "/home/ssd-01/Documents/Projects/school_bus/odoo/addons/base/models/ir_http.py", line 124, in _authenticate\n getattr(cls, "auth_method%s" % auth_method)()\n File "/home/ssd-01/Documents/Projects/school_bus/odoo/addons/base/models/ir_http.py", line 97, in _auth_method_user\n raise http.SessionExpiredException("Session expired")\nodoo.http.SessionExpiredException: Session expired\n",
"message": "Session expired",
"arguments": [
"Session expired"
],
"exception_type": "internal_error"
}
}
}