尝试在Chatbase中以相同的请求发送两条消息,如下所示:
{
"messages" : [{
"api_key" : "XXX",
"type" : "user",
"user_id" : 1287,
"time_stamp" : 1544782312,
"platform" : "Telegram",
"message" : "",
"intent" : "Screen2",
"version" : "1.1"
}, {
"api_key" : "XXX",
"type" : "agent",
"user_id" : 1287,
"time_stamp" : 1544782312,
"platform" : "Telegram",
"intent" : "Screen2",
"version" : "1.1"
}
]
}但是get响应错误
{
"reason" : "Error fetching parameter 'user_id': Field was empty.",
"status" : 400
}你有什么想法这是怎么回事吗?
发布于 2018-12-14 18:40:04
我发现了user_id字段的问题。
在Chatbase API中,user_id字段接受string类型值,并且您在user_id字段中传递了integer类型值。
https://stackoverflow.com/questions/53777688
复制相似问题