0
我想通过调用Watson Visual Recognition API对图像进行分类。屈臣氏视觉识别API中的invalid-api-key
所以,我把我的终点作为
(a) and sent a request message as
(b) However, I received an error message as
(c) How can I resolve this issue?
仅供参考。 - API密钥是在IBM Bluemix上生成的。
的(a)终点: “https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify”;
(B)抓获请求消息
reqMessage: {"api_key":"XXXX" ,"url":"http://cfile5.uf.tistory.com/image/1876DE4C4F29F9F13BB066",
"version":"2016-05-20", "classifirer_ids":default","owners":"IBM"}
(C)捕获的响应消息
resMessage: {"status": "ERROR", "statusInfo": "invalid-api-key"}
欢迎来到SO,请在提问时做一些更具体的问题:你有什么试过,你期望什么等等。请参阅[如何提问](http://stackoverflow.com/help/how-to-问) – Nehal
更新。非常感谢您的建议。 –
有两件事对我大声疾呼,但这两件事都不会成为invalid-api-key的根本原因。 首先你在“classifirer_ids”中有一个拼写错误,它应该是“classifier_ids”。其次,您提供了您的密钥,这意味着它现在已被泄露,如果它有效,则需要使其无效。 – chughts