为什么我得到HTTP 404&sub_code“:”S00004? IBM沃森

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

我正在使用curl命令:

curl -X POST --user“apikey:xxx”\ --header“Content-Type:application / json”\ --header“Accept:application / json”\ --data-binary @ profile.json \“https://gateway-fra.watsonplatform.net/personality-insights/api

IBM正在给我回复:

x {“code”:404,“sub_code”:“S00004”,“error”:“Not Found”}%

谁有想法为什么?

这是我的.json文件

https://watson-developer-cloud.github.io/doc-tutorial-downloads/personality-insights/profile.json

machine-learning artificial-intelligence ibm-watson
1个回答
5
投票

尝试使用以下curl命令:

curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"

用你的apikey替换xxxxxxxx。请避免将来在公共场合使用真正的apikey。任何人都可以使用你的钥匙我编辑了这个问题来隐藏它。请关注API reference for Personality Insights以获取更多信息。

© www.soinside.com 2019 - 2024. All rights reserved.