IBM Watson问题

问题描述 投票:0回答:1

谁能帮我解决这个问题这是我的代码。

curl -X POST -u "apikey:Zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ^
--header "Content-Type: text/plain;charset=utf-8" ^
--header "Accept: application/json" ^
--data-binary @profile.txt ^
"https:/xxxxxxxxxxxxxxxx1a/v3/profile?version=2017-10-13"

这就是错误

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - La función de revocación no puede comprobar la revocación para el certificado.
ibm-cloud ibm-watson personality-insights
1个回答
0
投票

这是一个相当基本的 curl 错误,因为它不明白你在尝试什么。

我想你是在多行上运行你的命令。Curl是一个单行命令。你在样本中看到的行标记是行的连续。不同的环境下,行延续的格式是不同的。如果你不知道你所处环境的续行标记,那么就在单行上运行命令,比如说。

curl -X POST -u "apikey:{apikey}" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "{url}/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"
© www.soinside.com 2019 - 2024. All rights reserved.