Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Fail to load workflow if definition contains schema/model validation error #368

Open
m4dcoder opened this issue Jan 16, 2020 · 0 comments
Open

Comments

@m4dcoder
Copy link
Contributor

If the workflow definition contains schema error such as having a duplicate key in the action input of a task, then st2flow will fail to load the entire workflow.

The developer console will return the following error.

Uncaught (in promise) TypeError: Cannot read property 'toObject' of undefined
    at OrquestaModel.validate (main.js:1)
    at workflowModelGetter (main.js:1)
    at flowReducer (main.js:1)
    at reducer (main.js:1)
    at rootReducer (main.js:1)
    at dispatch (main.js:1)
    at main.js:1

More detail root/cause is returned if user open a new canvas and then cut and paste the workflow definition into the text editor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants