API hit-testing not working knowledge #5465

Closed
opened 2026-02-21 18:11:05 -05:00 by yindo · 7 comments
Owner

Originally created by @tienldbnk on GitHub (Sep 9, 2024).

Originally assigned to: @crazywoola on GitHub.

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

0.7.3

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

image image

✔️ Expected Behavior

No response

Actual Behavior

Testing API hiting not working

Originally created by @tienldbnk on GitHub (Sep 9, 2024). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.7.3 ### Cloud or Self Hosted Cloud, Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce <img width="982" alt="image" src="https://github.com/user-attachments/assets/0fe4367a-9a66-476f-8666-fff2f6626783"> <img width="1789" alt="image" src="https://github.com/user-attachments/assets/8e32bc20-c765-4ad1-992d-b6f033278ed9"> ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior Testing API hiting not working
yindo added the 🐞 bug label 2026-02-21 18:11:05 -05:00
yindo closed this issue 2026-02-21 18:11:05 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 9, 2024):

I found some similar issues that might be relevant to your problem:

  1. Error is displayed in selecting the tool for the node (closed):

    • Solution: Ensure that your Node.js version is 18.17.0 or higher. Additionally, check the tool's authorization or configuration. For more details, refer to the tool setup documentation [1].
  2. The knowledge database is empty, list can be queried through API, and it will also prompt for duplicate names when creating (closed):

    • Solution: Ensure that the dataset name you are using is unique. You can list existing dataset names using the API to avoid duplicates [2].

Regarding the 500 Internal Server Error you are encountering, common causes include server overload or application errors. This is supported by the documentation, which states:

### 6. When using OpenAI's key for dialogue in the application, there is an error prompt as follows. **What is the cause?**

Error 1:

```JSON
The server encountered an internal error and was unable to complete your request。Either the server is overloaded or there is an error in the application

[3]


For the specific issue with the `page` field in the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type, I couldn't find a direct answer in the repository. However, it seems that the `page` field might not be a valid query field for this type. You may need to check the GraphQL schema definitions to confirm this.

If you need further assistance, please provide more details or check the GraphQL schema definitions for the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type to ensure that the `page` field is correctly defined.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
@dosubot[bot] commented on GitHub (Sep 9, 2024): <!-- Answer --> I found some similar issues that might be relevant to your problem: 1. **[Error is displayed in selecting the tool for the node](https://github.com/langgenius/dify/issues/7518)** (closed): - **Solution**: Ensure that your Node.js version is 18.17.0 or higher. Additionally, check the tool's authorization or configuration. For more details, refer to the [tool setup documentation](https://docs.dify.ai/v/zh-hans/guides/tools) <sup>[[1]](https://github.com/langgenius/dify/issues/7518)</sup>. 2. **[The knowledge database is empty, list can be queried through API, and it will also prompt for duplicate names when creating](https://github.com/langgenius/dify/issues/7637)** (closed): - **Solution**: Ensure that the dataset name you are using is unique. You can list existing dataset names using the API to avoid duplicates <sup>[[2]](https://github.com/langgenius/dify/issues/7637)</sup>. Regarding the `500 Internal Server Error` you are encountering, common causes include server overload or application errors. This is supported by the documentation, which states: ```md ### 6. When using OpenAI's key for dialogue in the application, there is an error prompt as follows. **What is the cause?** Error 1: ```JSON The server encountered an internal error and was unable to complete your request。Either the server is overloaded or there is an error in the application ``` <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/application-orchestrate/llms-use-faq.md)</sup> ``` For the specific issue with the `page` field in the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type, I couldn't find a direct answer in the repository. However, it seems that the `page` field might not be a valid query field for this type. You may need to check the GraphQL schema definitions to confirm this. If you need further assistance, please provide more details or check the GraphQL schema definitions for the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type to ensure that the `page` field is correctly defined. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 9, 2024):

I guess you need to reindex the documents.

  • What kinds of documents do you have?
  • Can you paste the settings of the KB?
@crazywoola commented on GitHub (Sep 9, 2024): I guess you need to reindex the documents. - What kinds of documents do you have? - Can you paste the settings of the KB?
Author
Owner

@tienldbnk commented on GitHub (Sep 9, 2024):

I guess you need to reindex the documents.

  • What kinds of documents do you have?
  • Can you paste the settings of the KB?
  1. Is there a way to reset the index of all apps without affecting them?
  2. I would like to know where the specific KB config is because I use the default of dify
@tienldbnk commented on GitHub (Sep 9, 2024): > I guess you need to reindex the documents. > > * What kinds of documents do you have? > * Can you paste the settings of the KB? 1. Is there a way to reset the index of all apps without affecting them? 2. I would like to know where the specific KB config is because I use the default of dify
Author
Owner

@crazywoola commented on GitHub (Sep 9, 2024):

  1. You can reset the index by change the embedding model and change it back.
  2. See the image below
    image
@crazywoola commented on GitHub (Sep 9, 2024): 1. You can reset the index by change the embedding model and change it back. 2. See the image below <img width="1059" alt="image" src="https://github.com/user-attachments/assets/fb9dd729-a36e-4eaa-83cc-e6b2d225ea80">
Author
Owner

@tienldbnk commented on GitHub (Sep 9, 2024):

  1. You can reset the index by change the embedding model and change it back.
  2. See the image below
image

I tried the same as you, but the result is still unable to query even though I'm running locally but on dify's official website it works normally. I discovered it had a query error when using the model. If I don't use the model but use the traditional one, it still works normally. Please guide me to refresh the index of these documents

@tienldbnk commented on GitHub (Sep 9, 2024): > 1. You can reset the index by change the embedding model and change it back. > 2. See the image below > > <img alt="image" width="1059" src="https://private-user-images.githubusercontent.com/100913391/365524868-fb9dd729-a36e-4eaa-83cc-e6b2d225ea80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4NjIwMDcsIm5iZiI6MTcyNTg2MTcwNywicGF0aCI6Ii8xMDA5MTMzOTEvMzY1NTI0ODY4LWZiOWRkNzI5LWEzNmUtNGVhYS04M2NjLWU2YjJkMjI1ZWE4MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwOVQwNjAxNDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTkyNzkxMjlmMjE3NDNmYTJhZjM1MDU1MWIyZDY1MTc5ZDYwYWU1YTBhZjQwZTYyMzJiYWIzYzg0MGU0NzJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6il3P5Af0zfg3e7KoXC13VIFur60cKCbZQlECh1U05E"> I tried the same as you, but the result is still unable to query even though I'm running locally but on dify's official website it works normally. I discovered it had a query error when using the model. If I don't use the model but use the traditional one, it still works normally. Please guide me to refresh the index of these documents
Author
Owner

@tienldbnk commented on GitHub (Sep 9, 2024):

@crazywoola

I got a fix, if I add a file to change the index and delete that file it will work, what is the cause?

@tienldbnk commented on GitHub (Sep 9, 2024): @crazywoola I got a fix, if I add a file to change the index and delete that file it will work, what is the cause?
Author
Owner

@crazywoola commented on GitHub (Sep 10, 2024):

See https://github.com/langgenius/dify/issues/8211 for updates

@crazywoola commented on GitHub (Sep 10, 2024): See https://github.com/langgenius/dify/issues/8211 for updates
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5465