the interface is successfully adjusted, but the API extension can't be added #12348

Closed
opened 2026-02-21 19:07:01 -05:00 by yindo · 2 comments
Owner

Originally created by @kzeng on GitHub (Mar 30, 2025).

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.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I'm going to adjust the API extension in the prompt word, and judge the logical intermediate interface, and the interface is successfully adjusted, but the API extension can't be added
See screenshot of error message:

Image

✔️ Expected Behavior

Actual Behavior

No response

Originally created by @kzeng on GitHub (Mar 30, 2025). ### 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 1.1.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I'm going to adjust the API extension in the prompt word, and judge the logical intermediate interface, and the interface is successfully adjusted, but the API extension can't be added See screenshot of error message: ![Image](https://github.com/user-attachments/assets/cddebb03-efcd-4685-8929-72a6b11326b3) ### ✔️ Expected Behavior ### ❌ Actual Behavior _No response_
yindo added the 🤔 cant-reproduce label 2026-02-21 19:07:01 -05:00
yindo closed this issue 2026-02-21 19:07:01 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 30, 2025):

A connection error with code 200 and the message "请求成功" (request successful) but with no data typically indicates a misconfiguration in the API response. Here are some potential causes and solutions:

  1. API Response Structure: Ensure that the API response follows Dify's required JSON structure. For certain features, the response must include specific fields such as 'records', 'metadata', 'score', 'title', and 'content' [1].

  2. Ping Check: Verify that the API endpoint correctly handles the ping check. Dify sends a request with {"point": "ping"} to validate the API endpoint and expects a response of {"result": "pong"}. Ensure this check is implemented correctly [2].

  3. Proxy Configuration: In a self-hosted environment, incorrect proxy settings can lead to protocol mismatches (HTTP/HTTPS), causing connection issues. Ensure your proxy is configured to handle HTTPS requests properly [3].

Review these aspects to resolve the connection error and successfully add the API extension.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 30, 2025): <!-- Answer --> A connection error with code 200 and the message "请求成功" (request successful) but with no data typically indicates a misconfiguration in the API response. Here are some potential causes and solutions: 1. **API Response Structure**: Ensure that the API response follows Dify's required JSON structure. For certain features, the response must include specific fields such as 'records', 'metadata', 'score', 'title', and 'content' <sup>[[1]](https://github.com/langgenius/dify/issues/14215)</sup>. 2. **Ping Check**: Verify that the API endpoint correctly handles the ping check. Dify sends a request with `{"point": "ping"}` to validate the API endpoint and expects a response of `{"result": "pong"}`. Ensure this check is implemented correctly <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/jp/guides/extension/api-based-extension/README.md)</sup>. 3. **Proxy Configuration**: In a self-hosted environment, incorrect proxy settings can lead to protocol mismatches (HTTP/HTTPS), causing connection issues. Ensure your proxy is configured to handle HTTPS requests properly <sup>[[3]](https://github.com/langgenius/dify/issues/12044)</sup>. Review these aspects to resolve the connection error and successfully add the API extension. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0fea52a8-c212-4a0d-9b47-24b4f08da73a?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 30, 2025):

We do not return Chinese in our API, so it should. be something wrong with your provider.

@crazywoola commented on GitHub (Mar 30, 2025): We do not return Chinese in our API, so it should. be something wrong with your provider.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12348