我正在尝试使用R调用Watson Conversation,但出现此错误
conversation.init <- function()
{
raw_response <- POST(url=paste(url_CONV,workspace_CONV,version,sep=""),
authenticate(username_CONV,password_CONV),
add_headers("Content-Type"="application/json"),
body = '{ "input": { "text":""},
"system":{ "dialog_stack":["root"]},
"dialog_turn_counter":1,
"dialog_request_counter":1
}',
encode = "json"
)
return(content(raw_response, "text", encoding = "UTF-8"))
}
我得到的结果是
[1]“
错误代码:ERCD-NOCONFIG
错误转移ID:gateway01 -1010827265
日期时间:2019-02-13T13:41:34-06:00