[openai_api_compatible] Error: PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'NoneType' object is not iterable"} in qwen-vl 2.5 #596

Closed
opened 2026-02-16 10:19:51 -05:00 by yindo · 2 comments
Owner

Originally created by @zyy-hw on GitHub (Aug 27, 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 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

main 8.1

Plugin version

openai_api_compatible 0.0.20

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Successfully connected to the private qwen-vl 32B through OpenAI-API-compatible.
  2. Encountered an error when using the large model in chatflow: Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'NoneType' object is not iterable"}

✔️ Error log

Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'NoneType' object is not iterable"}

Originally created by @zyy-hw on GitHub (Aug 27, 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 [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 main 8.1 ### Plugin version openai_api_compatible 0.0.20 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Successfully connected to the private qwen-vl 32B through OpenAI-API-compatible. 2. Encountered an error when using the large model in chatflow: Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'NoneType' object is not iterable"} ### ✔️ Error log Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'NoneType' object is not iterable"}
yindo added the bug label 2026-02-16 10:19:51 -05:00
yindo closed this issue 2026-02-16 10:19:51 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 27, 2025):

Hi @zyy-hw! I'm Dosu and I’m helping the dify-official-plugins team.

This error is most likely caused by the plugin or backend returning None where an iterable (like a list or dict) is expected—often when parsing the model's response or handling workflow variables. For Qwen models, known issues include non-streaming mode incompatibility, missing expected fields in the response, or the backend closing the connection prematurely during non-streaming requests. Double-check that your backend supports non-streaming requests and returns the expected response structure (especially fields like choices) source. Also, ensure your plugin configuration matches the backend's requirements, and consider debugging the workflow to trace variable values before plugin invocation source. If possible, try disabling streaming or switching to a market-provided OpenAI-API-compatible plugin for better compatibility source.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 27, 2025): <!-- Greeting --> Hi @zyy-hw! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> This error is most likely caused by the plugin or backend returning None where an iterable (like a list or dict) is expected—often when parsing the model's response or handling workflow variables. For Qwen models, known issues include non-streaming mode incompatibility, missing expected fields in the response, or the backend closing the connection prematurely during non-streaming requests. Double-check that your backend supports non-streaming requests and returns the expected response structure (especially fields like `choices`) [source](https://github.com/langgenius/dify-official-plugins/issues/1032). Also, ensure your plugin configuration matches the backend's requirements, and consider debugging the workflow to trace variable values before plugin invocation [source](https://github.com/langgenius/dify-official-plugins/issues/932). If possible, try disabling streaming or switching to a market-provided OpenAI-API-compatible plugin for better compatibility [source](https://github.com/langgenius/dify-official-plugins/issues/803). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1595)
Author
Owner

@zyy-hw commented on GitHub (Aug 27, 2025):

How to locate and confirm the place where this error occurs, currently with stream: true and the response structure is normal. @

Hi @zyy-hw! I'm Dosu and I’m helping the dify-official-plugins team.

This error is most likely caused by the plugin or backend returning None where an iterable (like a list or dict) is expected—often when parsing the model's response or handling workflow variables. For Qwen models, known issues include non-streaming mode incompatibility, missing expected fields in the response, or the backend closing the connection prematurely during non-streaming requests. Double-check that your backend supports non-streaming requests and returns the expected response structure (especially fields like choices) source. Also, ensure your plugin configuration matches the backend's requirements, and consider debugging the workflow to trace variable values before plugin invocation source. If possible, try disabling streaming or switching to a market-provided OpenAI-API-compatible plugin for better compatibility source.

To reply, just mention @dosu.

How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

How to locate and confirm the place where this error occurs, currently with stream: true and the response structure is normal.

@zyy-hw commented on GitHub (Aug 27, 2025): How to locate and confirm the place where this error occurs, currently with stream: true and the response structure is normal. @ > Hi [@zyy-hw](https://github.com/zyy-hw)! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. > > This error is most likely caused by the plugin or backend returning None where an iterable (like a list or dict) is expected—often when parsing the model's response or handling workflow variables. For Qwen models, known issues include non-streaming mode incompatibility, missing expected fields in the response, or the backend closing the connection prematurely during non-streaming requests. Double-check that your backend supports non-streaming requests and returns the expected response structure (especially fields like `choices`) [source](https://github.com/langgenius/dify-official-plugins/issues/1032). Also, ensure your plugin configuration matches the backend's requirements, and consider debugging the workflow to trace variable values before plugin invocation [source](https://github.com/langgenius/dify-official-plugins/issues/932). If possible, try disabling streaming or switching to a market-provided OpenAI-API-compatible plugin for better compatibility [source](https://github.com/langgenius/dify-official-plugins/issues/803). > > _To reply, just mention [@dosu](https://go.dosu.dev/dosubot)._ > > How did I do? [Good](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/43af65bb-d02c-4dc8-a83d-5bbc419edc6f?feedback_type=other)  [![Join Discord](https://camo.githubusercontent.com/d562c2df5e4567ea41d37f1d91a4da0839d8341037045b103b2da268998de17f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a6f696e2d3538363546323f6c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465266c6162656c3d)](https://go.dosu.dev/discord-bot) [![Share on X](https://camo.githubusercontent.com/4649f705e2396d6f328dbc8e800a0509c9c17b3b20253b36706c393df124b93d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f582d73686172652d626c61636b)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1595) How to locate and confirm the place where this error occurs, currently with stream: true and the response structure is normal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#596