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
September 26, 2024

Hi just ran into same issue

 

but got it working now

I started with this:

aio rt action create hello-world ./hello.js

 

than ran

aio rt action invoke hello-world ./hello.js

 

make some updates to the hello.js file, but needed to run the "update" command

aio rt action update hello-world ./hello.js

 

and now when i run it all works

aio rt action invoke hello-world -b -r

 

tip: (will give you a json format including error messages)

aio rt action invoke hello-world -b

 

so in short the "aio action update" did the trick for me

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