如何确定没有正确绑定?
生成的所有调试序列./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
_id
resource does not exist