OpenWhisk issues in 1.8?

I upgraded to 1.8 yesterday, but ran into the following OpenWhisk deployment issue even when trying authentication in different ways (wsk and env vars). Is this a coincidence or is anybody else seeing something like this:

Serverless: Packaging service...
Serverless: Compiling Functions...
Serverless: Compiling API Gateway definitions...
Serverless: Compiling Rules...
Serverless: Compiling Triggers & Feeds...
Serverless: Deploying Functions...
Serverless: Deploying API Gateway definitions...

  Serverless Error ---------------------------------------

     Failed to deploy API Gateway route (time) due to error:
     Invalid URL for API called, OpenWhisk returned HTTP
     404 response. The requested resource could not be found.

  Stack Trace --------------------------------------------

ServerlessError: Failed to deploy API Gateway route (time) due to error: Invalid URL for API called, OpenWhisk returned HTTP 404 response. The requested resource could not be found.
at ow.routes.create.then.catch.err (/usr/local/lib/node_modules/serverless-openwhisk/deploy/lib/deployApiGw.js:9:15)
at tryCatcher (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromises (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:700:14)
at Async._drainQueue (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (/usr/local/lib/node_modules/serverless-openwhisk/node_modules/request-promise/node_modules/bluebird/js/main/async.js:15:14)
at runCallback (timers.js:637:20)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:160:22)
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:95:31)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:23:50)

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues

  Your Environment Information -----------------------------
     OS:                 darwin
     Node Version:       6.9.1
     Serverless Version: 1.8.0

I believe this was due a bug introduced in a recent release of the OpenWhisk client library.
This has now been resolved and should hopefully be working.

Can you try reinstalling the plugin to upgrade the version of the client library to the latest release and try again?

If you are still having issues, can you open a ticket in https://github.com/serverless/serverless-openwhisk and I’ll investigate.

1 Like

That did the trick, thanks so much!

1 Like