Skip to content

fix: Handle missing Power Puter workflow metadata in API requests - #751

Open
mvanhorn wants to merge 1 commit into
rgthree:mainfrom
mvanhorn:fix/726-power-puter-api-pnginfo
Open

fix: Handle missing Power Puter workflow metadata in API requests#751
mvanhorn wants to merge 1 commit into
rgthree:mainfrom
mvanhorn:fix/726-power-puter-api-pnginfo

Conversation

@mvanhorn

Copy link
Copy Markdown

Normalize the workflow passed to _Puter at the existing RgthreePowerPuter.main boundary: use the supplied extra_pnginfo.workflow when present and fall back to an empty {"nodes": []} workflow when the metadata or workflow key is absent. Power Puter currently tests membership in the hidden extra_pnginfo value before checking whether that value exists.

Queue a Power Puter prompt through the API without extra_pnginfo/workflow metadata and verify a string-manipulation expression completes with the expected output instead of raising TypeError; Queue the same node through the normal UI workflow path with workflow metadata and verify its existing expression output remains unchanged.

Fixes #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'NoneType' is not iterable error when executing workflow with PowerPuter via API

1 participant