Cognigy / Cognigy-CLI

Cognigy-CLI is a series of tools meant to aid Cognigy.AI developers in maintaining local copies of their virtual agent projects.
Other
7 stars 6 forks source link

Run Playbooks - Returning Error in CLI, but Playbook Run is Success in UI #145

Open jacognigy opened 10 months ago

jacognigy commented 10 months ago

I'm using the command for "run playboosk": https://github.com/Cognigy/Cognigy-CLI#command-run

When I run the command with a test config file (with just 1 playbook) I get the following error:

jna@x-x:~$ cognigy run playbooks playbook_test.json
/home/jna/.nvm/versions/node/v18.15.0/lib/node_modules/@cognigy/cognigy-cli/build/utils/RestAdapter.js:76
        throw new BadRequestError_1.BadRequestError(data.title || data.error, data.detail || data.error_description, data.status, data.details);
              ^

Not Found: Playbook run does not exist
    at RestAdapter.handleError (/home/jna/.nvm/versions/node/v18.15.0/lib/node_modules/@cognigy/cognigy-cli/build/utils/RestAdapter.js:76:15)
    at RestAdapter.request (/home/jna/.nvm/versions/node/v18.15.0/lib/node_modules/@cognigy/cognigy-cli/build/utils/RestAdapter.js:42:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/jna/.nvm/versions/node/v18.15.0/lib/node_modules/@cognigy/cognigy-cli/node_modules/@cognigy/rest-api-client/build/GenericAPIFn.js:12:26
    at async Timeout._onTimeout (/home/jna/.nvm/versions/node/v18.15.0/lib/node_modules/@cognigy/cognigy-cli/build/lib/playbooks.js:71:37) {
  msg: 'Playbook run does not exist',
  httpStatusCode: 404,
  httpStatusText: 'Not Found',
  details: {}
}

Node.js v18.15.0

However, when I log into the UI of the Platform I can see the run from the Playbook with status succeeded.

I've tried adjusting the config.json file to update the timeout, but it doesn't wait as long as identified before the error is returned (ex. I set it to 30 or 60, and it's just as short as 10).

XavierJordaMurria commented 10 months ago

Hi, thanks for reporting this. I will create a ticket to investigate this. I will let you know once we schedule it in.