0

如何确定没有正确绑定?

生成的所有调试序列./bluepic.sh --install 都可以正常工作,但bluepic/processCallback- 但我不清楚对此的正确论点是什么wsk

日志抱怨bluepic/processCallback

Unable to convert value of type Optional<protocol<>>: 
file Foundation/NSSwiftRuntime.swift, line 269

local.env

 # Kitura server
 export KITURA_host="barneyrt.mybluemix.net"
 export KITURA_port=80
 export KITURA_schema="http://"

调用调试序列时,会将标签和天气写入 Cloudant 数据。

更多细节

更新完所有凭据后,local.env我创建了以下操作:

    [@Iains-MacBook BluePic-OpenWhisk]$ ./bluepic.sh --reinstall
    ...
    Install Complete
    entities in namespace: iainhouston_blupicdev
    packages
    /iainhouston_blupicdev/bluepic                                    private
    actions
    /iainhouston_blupicdev/bluepic/processCallback                    private
    /iainhouston_blupicdev/bluepic/processFinalWrite                  private
    /iainhouston_blupicdev/bluepic/processRequestThroughReadUser      private
    /iainhouston_blupicdev/bluepic/processRequestToReadImage          private
    /iainhouston_blupicdev/bluepic/processRequestThroughReadImage     private
    /iainhouston_blupicdev/bluepic/processRequestToWeather            private
    /iainhouston_blupicdev/bluepic/processRequestThroughWeather       private
    /iainhouston_blupicdev/bluepic/processRequestThroughAlchemy       private
    /iainhouston_blupicdev/bluepic/processRequestToCloudantWrite      private
    /iainhouston_blupicdev/bluepic/processRequestThroughCloudantWrite private
    /iainhouston_blupicdev/bluepic/processImage                       private
    /iainhouston_blupicdev/bluepic/kituraCallback                     private
    /iainhouston_blupicdev/bluepic/kituraRequestAuth                  private
    /iainhouston_blupicdev/bluepic/processImageStub                   private
    /iainhouston_blupicdev/bluepic/cloudantWrite                      private
    /iainhouston_blupicdev/bluepic/cloudantRead                       private
    /iainhouston_blupicdev/bluepic/alchemy                            private
    /iainhouston_blupicdev/bluepic/weather                            private
    /iainhouston_blupicdev/bluepic/httpGet                            private
    /iainhouston_blupicdev/bluepic/prepareCloudantWrite               private
    /iainhouston_blupicdev/bluepic/prepareWeatherRequest              private
    /iainhouston_blupicdev/bluepic/prepareReadImage                   private
    triggers
    rules

...并将应用程序部署到 Bluemix 并等待服务器应用程序重新启动。

如果我通过 Bluepic 应用程序上传后在 Cloudant 数据库中找到的图像的值在wsk action invoke processImage -p imageId 2f2bab3c3faad4e832d7a02bbf857b96哪里,我会收到错误消息。2f2bab3c3faad4e832d7a02bbf857b96_idresource does not exist

4

1 回答 1

0

我 99% 确定问题出在主机名周围的引号中。例如,我的是:export KITURA_host=bluepic-unhypnotisable-urbiculture.mybluemix.net

我正在使用Whisk.invokeAPI 将序列重写为协调器操作,这将使返回有用的错误消息更容易一些。

于 2016-06-24T12:52:39.747 回答