错误:找不到请求的URL/对话

2024-05-19 12:35:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在从postmanhttp://localhost:5005/conversations 但这给了我一个错误

我已经在SQL中创建了tracker store to store chat,我正在使用下面的命令来运行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```

Tags: thetostoreapilocalhostdbsqlstring