watsonx Assistant

 View Only
Expand all | Collapse all

Issue with Migrating IBM Watson Assistant Actions from IBM Cloud Functions to IBM Code Engine

  • 1.  Issue with Migrating IBM Watson Assistant Actions from IBM Cloud Functions to IBM Code Engine

    Posted Tue July 09, 2024 09:32 AM

    Our team previously used IBM Watson Assistant with IBM Cloud Functions to handle actions. After a period of inactivity, we resumed our chatbot development only to find that IBM Cloud Functions has been deprecated. Consequently, we have started migrating to IBM Code Engine.

    Following your provided tutorials, we successfully created and tested our functions locally. When executing via the command line, our function is called and operates correctly. However, we encountered an issue when integrating IBM Code Engine with IBM Watson Assistant. Despite following the tutorial on connecting IBM Code Engine with IBM Watson Assistant, our action functions are not being called.

    In our dialog, after typing an action it results in the following error message:

    {"status":422,"body":{"error":"Cannot start action. Check logs for details.","logs":["compiler: /bin/compile","it is source code","compiling: ./action/1/src/exec main: main","Command exited abruptly during initialization."],"ok":false} }
    We have thoroughly checked our setup and followed the documentation step-by-step. Despite this, we are unable to resolve the issue.

    Could you please assist us in identifying and rectifying the problem? Any guidance or troubleshooting steps would be greatly appreciated.

    Thank you for your support and assistance.
    #Watson Assistant#IBM#Code#Engine



    ------------------------------
    mohamad alameddine
    ------------------------------


  • 2.  RE: Issue with Migrating IBM Watson Assistant Actions from IBM Cloud Functions to IBM Code Engine

    Posted Tue August 06, 2024 04:29 PM

    Hi Mohamad, 

    Do you have any dependencies in your code?  It may be that the function cannot import them unless you build the function from source with a command similar to: 

    ibmcloud ce fn create --name test11 --runtime python --build-source .

    If that continues to provide a 422 error, then you will need to have a look at the log output from your function.  this will require an instance of log-dna in the same region that your function is deployed.  Please provide this log if the issue persists.



    ------------------------------
    Jason Leiby
    ------------------------------