为什么我会收到HTTP 404错误和子代码”S00004″?IBM Watson

我使用的是以下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


回答:

尝试使用以下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"

xxxxxxxx替换为你的apikey。请避免在公共场合使用真实的apikey,任何人都可以使用你的密钥。我已经编辑了问题以隐藏它。请参考Personality Insights API参考获取更多信息。

Related Posts

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注