The upgrade of the OpenAI-API-compatible plugin may result in an empty model, but the credentials can still be viewed. #657

Closed
opened 2026-02-16 10:20:05 -05:00 by yindo · 6 comments
Owner

Originally created by @viereck-lan on GitHub (Sep 17, 2025).

Originally assigned to: @Yeuoly, @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 Dify issues & Dify Official Plugins, 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.8.1

Plugin version

0.19 to 0.22,but test will affect all versions.

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image The upgrade of the OpenAI-API-compatible plugin may result in the model being empty, but credentials can still be viewed. Core error: Null pointer exception (Fatal Error). The log shows a panic triggered 6 consecutive times, with the error type being runtime error: invalid memory address or nil pointer dereference (in Go language, this refers to 'accessing an uninitialized nil pointer', which is a critical logical error).

✔️ Error log

plugin_daemon-1 | 2025/09/17 13:47:28 [Recovery] 2025/09/17 - 13:47:28 panic recovered:
plugin_daemon-1 | runtime error: invalid memory address or nil pointer dereference
plugin_daemon-1 | /usr/local/go/src/runtime/panic.go:262 (0x4771b8)
plugin_daemon-1 | /usr/local/go/src/runtime/signal_unix.go:917 (0x477188)
plugin_daemon-1 | /app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdbf0b2)
plugin_daemon-1 | /app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdbca1a)
plugin_daemon-1 | /app/internal/core/plugin_daemon/generic.go:27 (0xfda4d6)
plugin_daemon-1 | /app/internal/core/plugin_daemon/model.gen.go:161 (0x1008dab)
plugin_daemon-1 | /app/internal/service/model.gen.go:210 (0x1008d92)
plugin_daemon-1 | /app/internal/service/base_sse.go:116 (0x1013cfa)
plugin_daemon-1 | /app/internal/service/base_sse.go:44 (0x1013f5e)
plugin_daemon-1 | /app/internal/service/base_sse.go:114 (0x1013c44)
plugin_daemon-1 | /app/internal/service/model.gen.go:208 (0x1008d51)
plugin_daemon-1 | /app/internal/server/controllers/model.gen.go:163 (0x1ec7fa8)
plugin_daemon-1 | /app/internal/server/controllers/base.go:53 (0x103de1b)
plugin_daemon-1 | /app/internal/server/controllers/base.go:31 (0x103e281)
plugin_daemon-1 | /app/internal/server/controllers/base.go:37 (0x103dd35)
plugin_daemon-1 | /app/internal/server/controllers/model.gen.go:160 (0x1ec7ef3)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/middleware.go:170 (0x1ecaa33)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/middleware.go:97 (0x1ecaad3)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/middleware.go:66 (0x1ecedb1)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/controllers/health_check.go:28 (0x1eceaa4)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/middleware.go:24 (0x1eca1b4)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a)
plugin_daemon-1 | /app/internal/server/controllers/health_check.go:20 (0x1ecea44)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf964ce)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf964bb)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf95604)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf955eb)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf949f1)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf94460)
plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf93f91)
plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3210 (0x7e26cd)
plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2092 (0x7c1bef)
plugin_daemon-1 | /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47d3a0)
plugin_daemon-1 |
plugin_daemon-1 | [GIN] 2025/09/17 - 13:47:28 | 500 | 8.637101ms | 172.18.0.5 | POST "/plugin/1a0ab4d1-2cdc-4b19-a6dd-5559e14d19fd/dispatch/model/schema"

Originally created by @viereck-lan on GitHub (Sep 17, 2025). Originally assigned to: @Yeuoly, @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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.8.1 ### Plugin version 0.19 to 0.22,but test will affect all versions. ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="937" height="836" alt="Image" src="https://github.com/user-attachments/assets/67324d9e-709c-4c4c-9e86-bbb900dee620" /> The upgrade of the OpenAI-API-compatible plugin may result in the model being empty, but credentials can still be viewed. Core error: Null pointer exception (Fatal Error). The log shows a panic triggered 6 consecutive times, with the error type being runtime error: invalid memory address or nil pointer dereference (in Go language, this refers to 'accessing an uninitialized nil pointer', which is a critical logical error). ### ✔️ Error log plugin_daemon-1 | 2025/09/17 13:47:28 [Recovery] 2025/09/17 - 13:47:28 panic recovered: plugin_daemon-1 | runtime error: invalid memory address or nil pointer dereference plugin_daemon-1 | /usr/local/go/src/runtime/panic.go:262 (0x4771b8) plugin_daemon-1 | /usr/local/go/src/runtime/signal_unix.go:917 (0x477188) plugin_daemon-1 | /app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdbf0b2) plugin_daemon-1 | /app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdbca1a) plugin_daemon-1 | /app/internal/core/plugin_daemon/generic.go:27 (0xfda4d6) plugin_daemon-1 | /app/internal/core/plugin_daemon/model.gen.go:161 (0x1008dab) plugin_daemon-1 | /app/internal/service/model.gen.go:210 (0x1008d92) plugin_daemon-1 | /app/internal/service/base_sse.go:116 (0x1013cfa) plugin_daemon-1 | /app/internal/service/base_sse.go:44 (0x1013f5e) plugin_daemon-1 | /app/internal/service/base_sse.go:114 (0x1013c44) plugin_daemon-1 | /app/internal/service/model.gen.go:208 (0x1008d51) plugin_daemon-1 | /app/internal/server/controllers/model.gen.go:163 (0x1ec7fa8) plugin_daemon-1 | /app/internal/server/controllers/base.go:53 (0x103de1b) plugin_daemon-1 | /app/internal/server/controllers/base.go:31 (0x103e281) plugin_daemon-1 | /app/internal/server/controllers/base.go:37 (0x103dd35) plugin_daemon-1 | /app/internal/server/controllers/model.gen.go:160 (0x1ec7ef3) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/middleware.go:170 (0x1ecaa33) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/middleware.go:97 (0x1ecaad3) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/middleware.go:66 (0x1ecedb1) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/controllers/health_check.go:28 (0x1eceaa4) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/middleware.go:24 (0x1eca1b4) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8896a) plugin_daemon-1 | /app/internal/server/controllers/health_check.go:20 (0x1ecea44) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf964ce) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf964bb) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf95604) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf955eb) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf949f1) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf94460) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf93f91) plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3210 (0x7e26cd) plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2092 (0x7c1bef) plugin_daemon-1 | /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47d3a0) plugin_daemon-1 | plugin_daemon-1 | [GIN] 2025/09/17 - 13:47:28 | 500 | 8.637101ms | 172.18.0.5 | POST "/plugin/1a0ab4d1-2cdc-4b19-a6dd-5559e14d19fd/dispatch/model/schema"
yindo added the good first issuebug labels 2026-02-16 10:20:05 -05:00
yindo closed this issue 2026-02-16 10:20:05 -05:00
Author
Owner

@viereck-lan commented on GitHub (Sep 17, 2025):

Temporary Fix Method:

  1. Enter the Nginx configuration directory.
  2. Edit the Nginx configuration file.

At the top of the server { ... } block in the configuration file, add the following rule (ensure it matches with priority):

location ~* ^/plugin/[0-9a-f-]+/dispatch/model/schema$ {
default_type application/json;
return 200 '{"code":0,"data":{"schema":{}},"message":"success"}';
}

@viereck-lan commented on GitHub (Sep 17, 2025): Temporary Fix Method: 1. Enter the Nginx configuration directory. 2. Edit the Nginx configuration file. 3. # At the top of the server { ... } block in the configuration file, add the following rule (ensure it matches with priority): location ~* ^/plugin/[0-9a-f-]+/dispatch/model/schema$ { default_type application/json; return 200 '{"code":0,"data":{"schema":{}},"message":"success"}'; }
Author
Owner

@haiya512 commented on GitHub (Sep 23, 2025):

seems not fix yet, already do the steps as you metioned.

Image Image
@haiya512 commented on GitHub (Sep 23, 2025): seems not fix yet, already do the steps as you metioned. <img width="1146" height="574" alt="Image" src="https://github.com/user-attachments/assets/4afb5f84-8ff8-498a-a390-dc79ced91cac" /> <img width="990" height="968" alt="Image" src="https://github.com/user-attachments/assets/144c9c2a-58f3-47f7-932c-98a46e168579" />
Author
Owner

@viereck-lan commented on GitHub (Sep 23, 2025):

seems not fix yet, already do the steps as you metioned.

seems not fix yet, already do the steps as you metioned.
Image Image

After modification, you need to restart the Nginx service to take effect. docker-compose restart nginx

@viereck-lan commented on GitHub (Sep 23, 2025): > seems not fix yet, already do the steps as you metioned. > > seems not fix yet, already do the steps as you metioned. > <img alt="Image" width="1146" height="574" src="https://private-user-images.githubusercontent.com/11622523/492669515-4afb5f84-8ff8-498a-a390-dc79ced91cac.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTg2MTQ0NjksIm5iZiI6MTc1ODYxNDE2OSwicGF0aCI6Ii8xMTYyMjUyMy80OTI2Njk1MTUtNGFmYjVmODQtOGZmOC00OThhLWEzOTAtZGM3OWNlZDkxY2FjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTIzVDA3NTYwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmNzA1NWY4MDE5Mjc4NGJjMWZiZDZjMmEyYzI4NWQxN2QxY2IwODIyYTQyNTcxNzI5MjkzZWZmMTZkNTU1MzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zkbc7oz_hy0UrQXLXjcPwzxf4LLXG6UA57FgOSW6PWo"> <img alt="Image" width="990" height="968" src="https://private-user-images.githubusercontent.com/11622523/492669772-144c9c2a-58f3-47f7-932c-98a46e168579.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTg2MTQ0NjksIm5iZiI6MTc1ODYxNDE2OSwicGF0aCI6Ii8xMTYyMjUyMy80OTI2Njk3NzItMTQ0YzljMmEtNThmMy00N2Y3LTkzMmMtOThhNDZlMTY4NTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTIzVDA3NTYwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlZmE0NDc5NWI0YjI3NTQyMTMzMWY0NjNmOGVmMjIxM2RkZDg1ZTVjMWVhY2VlOWQzNmEzOGQxNDc4NzNiNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.blSsFLO6ab0scjDgQ1L6DpP6wsAi3kSDqVUjmi2O-r0"> After modification, you need to restart the Nginx service to take effect. docker-compose restart nginx
Author
Owner

@viereck-lan commented on GitHub (Sep 23, 2025):

and make sure you bug its seem to me,you need cheak you log

@viereck-lan commented on GitHub (Sep 23, 2025): and make sure you bug its seem to me,you need cheak you log
Author
Owner

@viereck-lan commented on GitHub (Sep 23, 2025):

and make sure you bug its seem to me,you need cheak you log

@viereck-lan commented on GitHub (Sep 23, 2025): and make sure you bug its seem to me,you need cheak you log
Author
Owner

@dosubot[bot] commented on GitHub (Oct 9, 2025):

Hi, @viereck-lan. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • Upgrading the OpenAI-API-compatible plugin in Dify (v1.8.1) causes the model to become empty while credentials remain.
  • This leads to fatal null pointer exceptions in Go across plugin versions 0.19 to 0.22.
  • A temporary Nginx configuration fix was suggested to return an empty schema JSON response.
  • Another user reported the issue persists despite applying the fix and restarting Nginx.
  • The issue remains unresolved with ongoing troubleshooting and log checks advised.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If no further updates are provided, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Oct 9, 2025): Hi, @viereck-lan. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - Upgrading the OpenAI-API-compatible plugin in Dify (v1.8.1) causes the model to become empty while credentials remain. - This leads to fatal null pointer exceptions in Go across plugin versions 0.19 to 0.22. - A temporary Nginx configuration fix was suggested to return an empty schema JSON response. - Another user reported the issue persists despite applying the fix and restarting Nginx. - The issue remains unresolved with ongoing troubleshooting and log checks advised. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If no further updates are provided, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#657