OpenBMB/ChatDev · error · SystemExit

1

Error message

1

What it means

ResourceNotFoundError raised by GET workflow-args when the validated filename does not exist as a file in YAML_DIR. Typically surfaces as 404 to the API client.

Source

Thrown at check/check_yaml.py:41

        # Users may configure environment variables at runtime
        DesignConfig.from_dict(data)
        return []
    except ConfigError as exc:
        return [str(exc)]


def main() -> None:
    parser = argparse.ArgumentParser(description="Validate workflow YAML structure against the typed config loader")
    parser.add_argument("path", help="Path to the workflow YAML file")
    args = parser.parse_args()

    data = read_yaml(args.path)
    errors = validate_design(data)
    if errors:
        print("Design validation failed:")
        for err in errors:
            print(f"- {err}")
        raise SystemExit(1)
    print("Design validation successful.")


if __name__ == "__main__":
    main()

View on GitHub (pinned to 4fb2db0ea9)

Solutions

  1. Confirm the file exists via the list-workflows endpoint.
  2. Include the correct .yaml/.yml extension and exact casing.
  3. Re-upload the workflow if it should exist.
Defensive patterns

Strategy: validation

Validate before calling

const files = await listWorkflows();
if (!files.includes(filename)) throw new NotFound(filename);

Type guard

const workflowExists = (files: string[], name: string) => files.includes(name);

Try / catch

catch (e) { if (e.status === 404) refreshWorkflowList(); }

Prevention

When it happens

Trigger: GET /api/workflows/{name}/args where the YAML file is absent or is a directory; using a name that was deleted or never uploaded.

Common situations: Stale workflow references after cleanup; case-sensitivity mismatches on Linux; wrong environment's directory; missing .yaml extension causing a different name lookup.

Understand the failure class

Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.

Related errors


AI-assisted analysis of OpenBMB/ChatDev@4fb2db0ea9 (2026-08-27). Data as JSON: /api/errors/0b96500060c99a82. Report an issue: GitHub.