0

我正在从邮递员http://localhost:5005/conversations调用 RASA API, 但它给了我一个错误。

我已经创建了跟踪器商店来在 SQL 中存储聊天,我正在使用下面的命令来运行 rasa。

rasa run --cors "*" -m models --enable-api --log-file out.log --endpoints endpoints.yml --auth-token thisismysecret --debug

我不知道我哪里错了。

我期待以下输出。

```[

{

    "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": 

        []
    }

]```

端点.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```
4

1 回答 1

0

这意味着您很可能没有正确定义 route/endpoint /conversation

于 2019-11-08T13:57:34.473 回答