Openwhisk : "error": "Cannot initialize the action more than once." | Community
Skip to main content
SkyGazer
Level 2
February 4, 2022
Question

Openwhisk : "error": "Cannot initialize the action more than once."

  • February 4, 2022
  • 3 replies
  • 4502 views

Hi All,

 

I am trying to create a webhook for my Adobe IO Project using Openwhisk.

 

I created a new webhook action and able to see it in wsk action list. And I am able to fetch the URL too. But when i configured it in my adobe io project's event registration I am getting "Webhook has been disabled because either webhook is unreachable or verification has failed".

 

When I checked the activation list in openwhisk. I got the below error 

 

{
"error": "Cannot initialize the action more than once."
}

 

After got this error. I deleted the action and tried creating it from scratch, after that also I am facing the same issue.

 

Can someone help me on this ?

 

Cheers 🙂

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Level 2
March 29, 2022

I have the same issue, i call the action successfully but once i do changes inside, i cannot call it again.

i use the update command to update it

after, that get same error as you

 

heinm95
Level 2
June 2, 2022

Hey there,

had the same Error some time ago. 
Using "aio runtime activation list" I was able to make out 3 different "activations" for every request I made.

When taking a peek into each one (aio runtime activation get <activation-id-from ...list>) I noticed an different error message on another one.
Fixing that one automatically removed that problem for me...

If you find the out what exactly is causing the problem in the first place please share it with us - would really like to deepen my understanding as I notice the more I learn the dumber I feel  😅

Adobe Employee
July 27, 2022

hey heinm, 

 

I am building action using aio runtime, it requires some package could you help me out on how to add nodemodule dependency in manifest.yaml.

 

Thanks

Manjunath

heinm95
Level 2
July 28, 2022

Hey Manjunath, 

I am not sure I understand what exactly you need help with and is this still about the the above mentioned "OpenWhisk" error??

 

But when creating a new action (after the Initial Setup using the aio-cli) using the "aio app:add:action" command you can just install packages like usual with npm or yarn. 
The only .yaml file I remember right now, was the one where you declare actions, events and all that (app.config.yaml) - and you don't need to add any packages there as far as I can tell.

Best regards, 
Max

Level 2
January 4, 2024

Hi @skygazer ,

 

Try updating the node version for the action that uses the event in your AppBuilder application.

For example:

runtime: nodejs:18

 

Regards,

Eugene