IBM-Cloud / openwhisk-visionapp

A sample iOS app for image tagging and face detection built with IBM Bluemix OpenWhisk
Other
43 stars 20 forks source link

Setup command no longer working #8

Closed zachurey closed 7 years ago

zachurey commented 7 years ago

When initially setting up the project, the command wsk action create -p cloudantUrl [URL] -p cloudantDbName openwhisk-vision -p watsonApiKey [123] vision-analysis analysis.js no longer works.

Whenever I called this command I get the following error in terminal: error: Invalid argument(s). File 'analysis.js' is not a valid file or it does not exist: stat analysis.js: no such file or directory Run 'wsk --help' for usage.

l2fprod commented 7 years ago

@legostarwarszach

I can't reproduce the issue.

here is my CLI version:

~/dev/whisk/openwhisk-visionapp> wsk property get --cliversion
whisk CLI version   2017-07-12T20:09:05+00:00
zachurey commented 7 years ago

I was not running from the openwhisk-visionapp directory, thanks.

zachurey commented 7 years ago

I have a additional question. When I try to run the app I get the following error in my console: Document created { "reason" : "_reader access is required for this request", "error" : "unauthorized" }

How do I fix this?

l2fprod commented 7 years ago

@legostarwarszach

Sounds like something is not correct with the Cloudant url. Make sure it is correctly set in ServerlessAPI.swift.