Skip to content

new knowledge base metadata api by openapi methods (curl) return 404 #16179

@StrayDragon

Description

@StrayDragon

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I'm noticed new version is released! That cool! But when using in openapi methods to interactive services, i got 404 for all new metadata apis

just follow https://cloud.dify.ai/datasets?category=api doc usage of the /datasets/{dataset_id}/metadata/built-in/{action} api, and fullfil the target knowledge base {dataset_id} and {api_key}

curl --location --request POST 'http://ai.urchinet.lan/v1/datasets/{dataset_id}/metadata/built-in/enable' \
--header 'Authorization: Bearer {api_key}'

got result 404

<!doctype html>
<html lang=en>
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>

by the way, directly operate on web ui is ok, maybe some code forgot to added to openapi

ref:

✔️ Expected Behavior

200 ok response

❌ Actual Behavior

404 not found

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions