0

为了以防万一,我已经更改了 env 文件和 app.js 文件中的工作区 ID。我已经安装了所有必要的 SDK,并按照此处的说明完成了所有工作。

我用自己的工作区换出了工作区文件。但我进行了所有必要的更改,包括更改工作区 ID。不太清楚为什么我仍然收到错误。任何帮助将非常感激!

已编辑:这是我对代码所做的更改

图片

4

1 回答 1

0

I had the same problem a few days ago. And, to solved this, you can paste the WORKSPACE_ID in this line too!

But, if you want use the .env file, make sure the are no spaces between = and the end of the line.

I will put the print of my app.js as an example to help you:

enter image description here

Actually, both ways work.

My example show this:

  username = "<iwdiaowd-jioawjd-ioajgr-ogxgxajofa>" 
  password = "<xxxxxxxxxxxxxxxxxxxx>"  

  var workspace = "<59583409583495834590385394>"`

Try edit your .env:

WLP_SKIP_MAXPERMSIZE=true
VCAP_SERVICES={"conversation": [{"name": "conversation-service","label": "conversation","plan": "free","credentials": {"url": "https://gateway.watsonplatform.net/conversation/api","isStreaming": false,"password": "-ReplaceMe-","username": "-ReplaceMe-"}}]}
COLLECTION_NAME=workspace
WORKSPACE_ID=iwdiaowd-jioawjd-ioajgr-ogxgxajofa
LOGGING_ENABLED=false
于 2016-12-21T16:42:00.393 回答