fix: improve workflow validation error logging and display #8594
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes validation error debugging for workflow templates by improving error logging and display.
The main focus is on making workflow validation errors easier to debug by providing clear, actionable error information to developers (via
console.error()
) while maintaining a good user experience in the toast.Previously the toast would output incomplete error messaging that was not very useful for debugging.
Now the toast shows the invalid field names in addition to the failure, while maintaining the truncation ("+40 more...") if there are many failures. But the developer console shows the full error object which can be used for debugging.
Also adds support for an optional
INVOKEAI_API_BASE_URL
env var for development, to allow the frontend server and the InvokeAI API server it proxies to be on separate machines.Checklist
What's New
copy (if doing a release after this PR)