After Update Api Action Dont Work

After update to wappler 3.5 I am getting this error:
Error parsing the JSON in exec

  1. code: 0, file: “C:\www\xxx\httpdocs\dmxConnectLib\lib\App.php”, line: 123,…}

  2. code: 0

  3. file: “C:\www\xxx\httpdocs\dmxConnectLib\lib\App.php”

  4. line: 123

  5. message: “Error parsing the JSON in exec”

  6. trace: “#0 C:\www\xxx\httpdocs\dmxConnectLib\lib\App.php(129): lib\App->exec(NULL, false)↵#1 C:\www\xxx\httpdocs\dmxConnectLib\lib\App.php(94): lib\App->exec(Array)↵#2 C:\www\xxx\httpdocs\dmxConnect\api\livesources\allRecordings.php(8): lib\App->define(Array)↵#3 {main}”

In my action file there is only API Action step with datatype JSON.

Before creating this topic after error i deleted dmxConnectLib folder. And it is recreated by wappler. Error is the same.

Could you send me the file api\livesources\allRecordings.php.

I solve this problem this way: I create new action file and i saw that in my old action file below code rows doesnt exist:
{
** “exec”: {**
** “steps”: [**
xxxxx my old code xxxxxxx
]
** }**
}
when I get my code in this block my problem solved…

Did the old code also have an “exec” as key on the object?

Sorry in old code there is
{
“exec”: {
“steps”:
after update
doesnt exist

I see that this happens when adding a global value to step:Api action > Url.

Fix for the new structure.

App.zip (2.0 KB)

Fixed in Wappler 3.5.2

This topic was automatically closed after 2 days. New replies are no longer allowed.