无论仔细检查所有内容,我都会收到无效的用户 ID 错误。
我正在发布一个非常简单的调用,其中服务凭证取自 Bluemix 中的对话服务,工作空间 ID 取自对话服务中的特定工作区。
我错过了什么?
curl -X POST \
-u "{XXXXXXXXXXXXXXXXXXXXXXX}":"{XXXXXXXXX}" \
-H "Content-Type:application/json" \
-d "{\"input\": {\"text\": \”Hello\”}}" "https://gateway.watsonplatform.net/conversation/api/v1/workspaces/1db1f0a0-638e-4a27-bbf3-3117b308a727/message?version=2016-07-11"
我不断收到此错误。欢迎提示
<HTML><HEAD><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><TITLE>Watson Error</TITLE></HEAD><BODY><HR><p>Invalid access to resource - /conversation/api/v1/workspaces/1db1f0a0-638e-4a27-bbf3-3117b308a727/message?version=2016-07-11</p><p>User access not Authorized.</p><p>Gateway Error Code : ERCD04-INVLDCHR-USERID</p><p>Unable to communicate with Watson.</p><p>Request URL : https://158.85.132.88:443/conversation/api/v1/workspaces/1db1f0a0-638e-4a27-bbf3-3117b308a727/message?version=2016-07-11</p><p>Error Id : gateway-dp01-928752884</p><p>Date-Time : 2016-09-20T08:56:03-04:00</p></BODY></HTML>