Skip to content

Commit 3126771

Browse files
yeldarbyclaude
andcommitted
docs(changelog): note the workflow autowrap bugfix in 1.3.7 entry
PR #460 merged into main after the 1.3.7 version bump (#463) so the in-tree CHANGELOG was missing it. Adds a "Fixed" subsection under the 1.3.7 entry that mirrors what ships in the GitHub Release notes / on PyPI, plus the migration note for already-broken workflows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d384863 commit 3126771

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ those actions are not exposed on the SDK or CLI — they live only in the
3939
Roboflow app's Trash view, which has an explicit confirmation dialog.
4040
Items left in Trash are cleaned up automatically after 30 days.
4141

42+
### Fixed — Workflows created via SDK/CLI now execute successfully
43+
44+
`Workspace.create_workflow()` and `roboflow workflow create --definition`
45+
auto-wrap bare workflow definitions in `{"specification": ...}` before
46+
POSTing to the backend, matching what the web app does
47+
([#460](https://github.com/roboflow/roboflow-python/pull/460)). Previously,
48+
the user-facing flat shape (`{version, inputs, steps, outputs}`) was sent
49+
verbatim, so `POST /infer/workflows/...` against the resulting workflow
50+
returned `HTTP 502` with `MalformedWorkflowResponseError: Workflow
51+
specification not found in Roboflow API response`.
52+
53+
Workflows already wrapped (top-level `specification` key) are passed
54+
through unchanged. Non-workflow dicts and non-JSON strings are also
55+
passed through verbatim so custom payloads aren't second-guessed.
56+
57+
> **Note:** workflows that were stored with the bare shape *before* this
58+
> fix will still 502 until re-saved. Run `roboflow workflow update
59+
> <url> --definition <file>` once per affected workflow to migrate.
60+
4261
### Changed — Image upload no longer re-encodes images
4362

4463
`upload_image` now uploads original image bytes instead of re-encoding to

0 commit comments

Comments
 (0)