offine plugin can't connect OpenAI-API-compatible #12789

Closed
opened 2026-02-21 19:09:03 -05:00 by yindo · 4 comments
Owner

Originally created by @fancywus on GitHub (Apr 11, 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

v1.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1.i use oline dify web download plugin (langgenius-openai_api_compatible_0.0.12.difypkg)
2.i used a third-party project (https://github.com/junjiem/dify-plugin-repackaging) to turn this plugin (difypkg) package into a real offline package
3.go to offine dify web install real offline package
4.install success, but add model is away not response, add fail

✔️ Expected Behavior

1.can achieve true offline plugin installation and add model services

Actual Behavior

install success, but add model is away not response, add fail

Originally created by @fancywus on GitHub (Apr 11, 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 v1.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1.i use oline dify web download plugin (langgenius-openai_api_compatible_0.0.12.difypkg) 2.i used a third-party project (https://github.com/junjiem/dify-plugin-repackaging) to turn this plugin (difypkg) package into a real offline package 3.go to offine dify web install real offline package 4.install success, but add model is away not response, add fail ### ✔️ Expected Behavior 1.can achieve true offline plugin installation and add model services ### ❌ Actual Behavior install success, but add model is away not response, add fail <!-- Failed to upload "image.png" --> <!-- Failed to upload "image.png" -->
yindo added the 🐞 bug label 2026-02-21 19:09:03 -05:00
yindo closed this issue 2026-02-21 19:09:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 11, 2025):

A similar issue has been discussed in the Dify community, where the offline plugin was unable to connect to the OpenAI-API-compatible service after successful installation on a self-hosted Dify platform using Docker. The problem was that it returned empty content with a 'Non-JSON encountered' finish reason. The recommended solution is to follow the fix detailed in GitHub issue #392 of the dify-official-plugins repository: https://github.com/langgenius/dify-official-plugins/issues/392. Additionally, ensure that your configuration uses 'http://host.docker.internal' instead of '127.0.0.1' for the host, and unset any system proxy environment variables using:

unset HTTP_PROXY
unset HTTPS_PROXY

If the issue persists, consider reverting to Dify version 0.3, where the connection has been confirmed to work, while waiting for a resolution through the plugins repository [1].

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 (Apr 11, 2025): <!-- Answer --> A similar issue has been discussed in the Dify community, where the offline plugin was unable to connect to the OpenAI-API-compatible service after successful installation on a self-hosted Dify platform using Docker. The problem was that it returned empty content with a 'Non-JSON encountered' finish reason. The recommended solution is to follow the fix detailed in GitHub issue #392 of the dify-official-plugins repository: https://github.com/langgenius/dify-official-plugins/issues/392. Additionally, ensure that your configuration uses 'http://host.docker.internal' instead of '127.0.0.1' for the host, and unset any system proxy environment variables using: ```bash unset HTTP_PROXY unset HTTPS_PROXY ``` If the issue persists, consider reverting to Dify version 0.3, where the connection has been confirmed to work, while waiting for a resolution through the plugins repository <sup>[[1]](https://github.com/langgenius/dify/issues/16774)</sup>. <!-- 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/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/bb4570c2-8f16-4480-a46f-08ee4027f47d?feedback_type=other)</sup>
Author
Owner

@fancywus commented on GitHub (Apr 11, 2025):

Image

@fancywus commented on GitHub (Apr 11, 2025): ![Image](https://github.com/user-attachments/assets/a2629106-3e43-44aa-9e54-b71a4358e342)
Author
Owner

@fancywus commented on GitHub (Apr 14, 2025):

@crazywoola why close this issue?

@fancywus commented on GitHub (Apr 14, 2025): @crazywoola why close this issue?
Author
Owner

@vsxen commented on GitHub (Apr 15, 2025):

/ping same issue.

@vsxen commented on GitHub (Apr 15, 2025): /ping same issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12789