无法部署Bluemix Visual Recognition服务

时间:2016-07-13 18:07:51

标签: ibm-cloud visual-recognition

我是新手,并尝试部署此demo。我收到了以下错误:

Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
FAILED
Error readingmanifest file:
yaml: line 3: mapping values are not allowed in this context
Finished: FAILED
Stage has no runtime information

Initial manifest.yml:
declared-services:
  visual-recognition-free
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

由于错误,我改变了它:

declared-services:
  visual-recognition-free:
    label: watson_vision_combined
    plan: free
applications:
- name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M
services:
  - visual-recognition-free

单击"从Workspace部署应用程序"。

Deploy failed: An unknown error occurred.

1 个答案:

答案 0 :(得分:2)

该问题与manifest.yml语法有关。目前,manifest.yml文件定义如下:

    ---
declared-services:
  visual-recognition-free
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

但是,manifest.yml应如下所示:

    ---
declared-services:
  visual-recognition-free:
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

声明服务名称末尾应该有一个“:”“visual-recognition-free”

我创建了一个Github问题,以便更新manifest.yml文件:

https://github.com/watson-developer-cloud/visual-recognition-nodejs/issues/193

在此期间,您可以在Jazz Hub上对项目进行更改。