watson-developer-cloud / conversation-connector

The Conversation connector is a set of components that mediate communication between your Conversation workspace and a Slack or Facebook app. Use the connector to deploy a chat bot that Slack or Facebook Messenger users can interact with.
Apache License 2.0
28 stars 62 forks source link

error: Unable to create action '...': The requested resource does not exist. (code ...) #72

Closed aFelipeSP closed 5 years ago

aFelipeSP commented 6 years ago

At the end of setup.sh execution I got the following errors:

Your Request URL is: https://openwhisk.ng.bluemix.net/api/v1/web/xxxxxxxxxxxxx_dev/xxxxxxxxxxxxxxxx_facebook/receive.text error: Unable to create action 'xxxxxxxxxxxxx_postsequence': The requested resource does not exist. (code xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) Run 'wsk --help' for usage. error: Unable to create action 'xxxxxxxxxxxxxxx': The requested resource does not exist. (code xxxxxxxxxxxxxxxxxxxxxxxxxx) Run 'wsk --help' for usage. Done.

I tried also to enter https://console.ng.bluemix.net/openwhisk/editor but this url does not exist and that's where I do step 21 of Messenger tutorial.

dgterry commented 6 years ago

The current URL should be https://console.bluemix.net/openwhisk/actions from there you'll want to find _facebook/receive and click on it. In the page that loads up click endpoints in the left hand frame. @rrberry maybe we can update the instructions since the UI has changed?

@aFelipeSP as to the script error could you paste the complete output of the script (or at least the part where it starts trying to create the database and actions) usually an earlier failure leads to the one you listed. It's fine if you want to xxx out any sensitive data.

aFelipeSP commented 5 years ago

Thanks a lot @dgterry for answering me, and sorry for answering you so late. The whole output of the script is this:

API endpoint: https://api.ng.bluemix.net
Region: us-south
User: xxxxxxx
Account: xxxxxxx's Account ( xxxxxxx)
Resource group: Default
CF API endpoint: https://api.ng.bluemix.net (API version: 2.106.0)
Org: xxxxxxx
Space: dev
Syncing wsk namespace with CF namespace... Checking for or creating cloudant instance... Invoking 'cf service conversation-connector'...

Showing info of service conversation-connector in org xxxxxxx / space dev as xxxxxxx...

name: conversation-connector service: cloudantNoSQLDB bound apps:
tags:
plan: Lite description: IBM Cloudant is a fully managed JSON document database. Cloudant is compatible with Apache CouchDB and accessible through a simple to use HTTPS API for web, mobile, and IoT applications. See https://ibm.com/cloud/cloudant for more details. documentation:
dashboard: xxxxxxx

Showing status of last operation from service conversation-connector...

status: create succeeded message:
started: 2018-09-28T16:52:30Z updated: 2018-09-28T16:52:30Z Invoking 'cf service-key conversation-connector conversation-connector-key'...

Getting key conversation-connector-key for service instance conversation-connector as xxxxxxx...

{ "apikey": " xxxxxxx", "host": " xxxxxxx", "iam_apikey_description": "xxxxxxx", "iam_apikey_name": "xxxxxxxx", "iam_role_crn": "xxxxxx", "iam_serviceid_crn": "xxxxxx", "password": "xxxxx", "port": xxxx, "url": "xxxxx", "username": "xxxxxx" } Creating deployment pipeline(s)... { "channel": { "facebook": { "app_secret": "xxxxxxxx", "page_access_token": "xxxxx", "verification_token": "xxxxxx" }, "name": "facebook", "slack": { "client_id": "xxxx", "client_secret": "xxxx", "verification_token": "xxxx" } }, "conversation": { "username": "xxxxxx", "password": "xxxxx", "workspace_id": "xxxxxx" }, "name": "civii-messenger" } /usr/bin/env: ‘bash\r’: No such file or directory /usr/bin/env: ‘bash\r’: No such file or directory /usr/bin/env: ‘bash\r’: No such file or directory /usr/bin/env: ‘bash\r’: No such file or directory Your Cloudant Auth DB URL is: xxxxxxx Your Request URL is: https://openwhisk.ng.bluemix.net/api/v1/web/ xxxxxxxxxxxxxx_facebook/receive.text error: Unable to create action 'xxxxxxxx_postsequence': The requested resource does not exist. (code xxxxxx) Run 'wsk --help' for usage. error: Unable to create action 'xxxxxxxxx': The requested resource does not exist. (code xxxxxxx) Run 'wsk --help' for usage. Done.

Thanks a lot again.

aFelipeSP commented 5 years ago

I tried one more time to run the setup.sh and got the same error ¿have anyone experienced this, or does anyone have an idea how to solve it?