Skip to content

Service API knowledge pipeline endpoints under /v1 return 404 #32099

Description

@tokezooo

Summary

Service API endpoints for Knowledge Pipeline (RAG pipeline) are not reachable under /v1 and return 404, even though the controller exists in the codebase.

Steps to reproduce

  1. Self-host Dify and create a dataset with Knowledge Pipeline enabled
  2. Call the Service API endpoint:
curl -i -H "Authorization: Bearer $DIFY_API_KEY" \
  "$DIFY_BASE_URL/v1/datasets/<dataset_id>/pipeline/datasource-plugins"

Expected behavior

  • Endpoint exists and returns 200 with a JSON array (or a non-404 error if request is invalid).

Actual behavior

  • Returns 404 Not Found.

Notes / suspected root cause

  • api/controllers/service_api/dataset/rag_pipeline/rag_pipeline_workflow.py exists but is not imported/registered in the Service API blueprint aggregation module (api/controllers/service_api/__init__.py), so routes never get registered.
  • Route decorators in that module currently use invalid patterns like f"/datasets/{uuid:dataset_id}/..." instead of Flask converter syntax "/datasets/<uuid:dataset_id>/...". If the module is imported, this can also break import/init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions