Library Server Action not found

I have a Library server action that is called from another action. Locally everything works and the lib server action runs.

When the docker container with site is deployed to live, the normal server action is unable to call the Lib server action. I think it is because I changed the name of the action from uppercase to lowercase and server connect is still looking for the uppercase lib action.

This is the error on the server:

{
    "status": "500",
    "message": "There is no action called 'Income/AddScalingSingle' found in the library.",
    "stack": "Error: There is no action called 'Income/AddScalingSingle' found in the library.\n    at App.exec (/opt/node_app/lib/modules/core.js:233:19)\n    at App._exec (/opt/node_app/lib/core/app.js:545:57)\n    at App._exec (/opt/node_app/lib/core/app.js:512:28)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async App.exec (/opt/node_app/lib/core/app.js:481:9)\n    at async App.condition (/opt/node_app/lib/modules/core.js:105:17)\n    at async App._exec (/opt/node_app/lib/core/app.js:545:30)\n    at async App._exec (/opt/node_app/lib/core/app.js:512:17)\n    at async App.exec (/opt/node_app/lib/core/app.js:481:9)\n    at async App.exec (/opt/node_app/lib/modules/core.js:228:13)"
}

when opening the normal server action I call the lowercase lib action:

{
        "name": "exec1",
        "module": "core",
        "action": "exec",
        "options": {
          "exec": "Income/addScalingSingle",
          "params": {
            "incomeid": "{{salaryid}}"
          }
        },
        "output": true
      },

Opening the lib server action it starts with lower case

Screenshot 2022-10-26 at 07.56.19

I cannot find the place in the code the normal action has a reference with the uppercase ‘a’ in it.

Should I then just keep on changing action names till I get it to work locally and online or is there a place to fix this in Wappler?

Community Page
Last updated: