控制台日志:
[2021-01-15 07:30:20 +0530] [11592] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/auth'
Traceback (most recent call last):
File "c:\users\adity\venv\lib\site-packages\rasa\cli\x.py", line 494, in run_locally
local.main(
TypeError: main() got an unexpected keyword argument 'domain_path'
在处理上述异常的过程中,又出现了一个异常:
Traceback (most recent call last):
File "c:\users\adity\venv\lib\site-packages\sanic\app.py", line 914, in handle_request
response = await response
File "c:\users\adity\venv\lib\site-packages\sanic_jwt\endpoints.py", line 36, in post
access_token, output = await self.responses.get_access_token_output(
File "c:\users\adity\venv\lib\site-packages\sanic_jwt\responses.py", line 19, in get_access_token_output
access_token = await instance.auth.generate_access_token(user)
File "c:\users\adity\venv\lib\site-packages\sanic_jwt\authentication.py", line 477, in generate_access_token
return jwt.encode(payload, secret, algorithm=algorithm).decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'