我尝试为IBM Watson NLC上传我的分类器,但它不起作用......它总是告诉我我的用户名或密码不正确,但事实并非如此......是否存在我错过了什么?下面你可以看到我用git bash做了什么,我刚刚输入了命令,但它总是返回错误的密码或用户名错误。
$ curl -u "866fe4a8-xxxxxxx2bd61bb63":"6j7xxxxxxi156" -F training_data=@industry.csv -F training_metadata="{\"language\":\"en\",
> \"name\":\"Industry2016\"}" "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36548 100 488 100 36060 247 18313 0:00:01 0:00:01 --:--:-- 18561{ "code" : 401 , "error" : "Not Authorized" , "description" : "2018-04-17T09:31:49-05:00, Error ERCDPLTFRM-DNLKUPERR occurred when accessing https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers, Tran-Id: gateway02-65905981 - Invalid UserId and/or Password. Please confirm that your credentials match the end-point you are trying to access. A common error is trying to use credentials from an experimental or beta release against a GA release or vice versa" }

答案 0 :(得分:0)
如果错误响应类似于您不允许创建分类器或者您处于分配限制,那么您可以假设您使用的凭据是正确的。但是您看到的凭据消息无效,这表明您使用的凭据不正确。
因此,请检查您是否使用了在IBM Cloud中创建的Natural Language Classifier服务实例所指定的正确凭据来生成凭据。当你在那里也检查端点。如果您没有在德国地区部署实例,那么端点将是不同的。