Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

[V0.5] When the /api/workflow/generate interface returns an error, the response code is 20000 (expected: 50000). #1469

@wanghuan-520

Description

@wanghuan-520

Description:
When the /api/workflow/generate interface returns an error, the response code is 20000 (expected: 50000).

Steps to Reproduce:
1.On the workflow page, click the "New Workflow" button.
2.In the "Generate Workflow with AI" pop-up, enter a prompt with fewer than 15 characters.

CURL

Current Behavior:
The interface returns an error with code 20000, and no toast notification is displayed on the frontend.
Image

Expected Behavior:
The interface should return an error code 50000, and the frontend should display a toast notification to alert the user.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions