[英]Error: Requested URL /conversations not found
I am calling an RASA API from postman http://localhost:5005/conversations but it is giving me an error.我正在从 postman http://localhost:5005/conversations调用 RASA API,但它给了我一个错误。
I have created tracker store to store chat in SQL and I am using below command to run rasa.我创建了跟踪器商店以将聊天存储在 SQL 中,并且我正在使用以下命令运行 rasa。
rasa run --cors "*" -m models --enable-api --log-file out.log --endpoints endpoints.yml --auth-token thisismysecret --debug
I dont know where I am getting wrong.我不知道我哪里错了。
I am expecting following output.我期待关注 output。
```[
{
"conversation_id": "string",
"latest_event_time": 0,
"latest_input_channel": "string",
"intents":
[],
"actions":
[],
"minimum_action_confidence": 0,
"in_training_data": true,
"policies":
[],
"n_user_messages": 0,
"flagged_messages":
[],
"unflagged_messages":
[]
}
]```
endpoints.yml端点.yml
```action_endpoint:
url: "http://localhost:5055/webhook"
# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
# https://rasa.com/docs/rasa/api/tracker-stores/
tracker_store:
type: SQL
dialect: "mysql+pymysql" # the dialect used to interact with the db
url: "localhost" # (optional) host of the sql db, e.g. "localhost"
db: "db" # path to your db
username: "username" # username used for authentication
password: "password" # password used for authentication
query: # optional dictionary to be added as a query string to the connection URL```
That means that mot likely you did not correctly define the route/endpoint /conversation
.这意味着您很可能没有正确定义 route/endpoint
/conversation
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.