tongyi-qwen LLM plugin error #20952

Closed
opened 2026-02-21 20:09:56 -05:00 by yindo · 3 comments
Owner

Originally created by @zufall1985 on GitHub (Dec 10, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

cannot save with tongyi qwen v0.1.6 configuration
error: slice indices must be integers or None or have an index method

✔️ Expected Behavior

how to use tongyi llm plugin

Actual Behavior

No response

Originally created by @zufall1985 on GitHub (Dec 10, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce cannot save with tongyi qwen v0.1.6 configuration error: slice indices must be integers or None or have an __index__ method ### ✔️ Expected Behavior how to use tongyi llm plugin ### ❌ Actual Behavior _No response_
yindo added the 🌚 invalid label 2026-02-21 20:09:56 -05:00
yindo closed this issue 2026-02-21 20:09:56 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2025):

The error "slice indices must be integers or None or have an index method" when configuring the tongyi-qwen plugin usually means the plugin daemon is returning a malformed or unexpected payload, often due to missing dependencies or a misconfigured environment in the plugin's isolated Python environment. This is a common issue with LLM plugins in Dify's Docker setup, especially if the plugin's requirements.txt is incomplete or dependencies failed to install during setup.

Here’s what you can do:

  1. Enter the plugin daemon container and check the logs for errors related to the tongyi-qwen plugin. Look for missing dependencies or Python errors.
  2. Ensure all required dependencies are listed in the plugin’s requirements.txt and are installed in the plugin’s .venv directory. If dependencies are missing, you can manually install them:
    docker exec -it docker-plugin_daemon-1 bash
    VENV=$(find /app/storage -maxdepth 5 -type d -name '.venv' | head -n1)
    "$VENV/bin/python" -m ensurepip --upgrade || (curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && "$VENV/bin/python" /tmp/get-pip.py)
    "$VENV/bin/python" -m pip install -U <missing-dependency>
    exit
    docker restart docker-plugin_daemon-1
    
  3. Double-check your plugin configuration parameters—make sure all values are the expected types (e.g., strings, not numbers or objects).
  4. If you recently upgraded the plugin, try downgrading to a previous version (e.g., some users found downgrading from 0.0.25 to 0.0.18 resolved similar issues with Tongyi plugins)source.
  5. Make sure your API keys are current and correctly formatted, as expired or malformed credentials can also cause plugin failuressource.

If the error persists, monitor the plugin daemon logs for more details—silent failures or malformed responses are often the root cause of this slice index error. There is currently no official documentation for tongyi-qwen plugin setup, so these troubleshooting steps are based on common patterns with Dify plugins.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 10, 2025): <!-- Answer --> The error "slice indices must be integers or None or have an __index__ method" when configuring the tongyi-qwen plugin usually means the plugin daemon is returning a malformed or unexpected payload, often due to missing dependencies or a misconfigured environment in the plugin's isolated Python environment. This is a common issue with LLM plugins in Dify's Docker setup, especially if the plugin's requirements.txt is incomplete or dependencies failed to install during setup. Here’s what you can do: 1. Enter the plugin daemon container and check the logs for errors related to the tongyi-qwen plugin. Look for missing dependencies or Python errors. 2. Ensure all required dependencies are listed in the plugin’s requirements.txt and are installed in the plugin’s `.venv` directory. If dependencies are missing, you can manually install them: ```sh docker exec -it docker-plugin_daemon-1 bash VENV=$(find /app/storage -maxdepth 5 -type d -name '.venv' | head -n1) "$VENV/bin/python" -m ensurepip --upgrade || (curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && "$VENV/bin/python" /tmp/get-pip.py) "$VENV/bin/python" -m pip install -U <missing-dependency> exit docker restart docker-plugin_daemon-1 ``` 3. Double-check your plugin configuration parameters—make sure all values are the expected types (e.g., strings, not numbers or objects). 4. If you recently upgraded the plugin, try downgrading to a previous version (e.g., some users found downgrading from 0.0.25 to 0.0.18 resolved similar issues with Tongyi plugins)[source](https://github.com/langgenius/dify-official-plugins/issues/925). 5. Make sure your API keys are current and correctly formatted, as expired or malformed credentials can also cause plugin failures[source](https://github.com/langgenius/dify-official-plugins/issues/1936). If the error persists, monitor the plugin daemon logs for more details—silent failures or malformed responses are often the root cause of this slice index error. There is currently no official documentation for tongyi-qwen plugin setup, so these troubleshooting steps are based on common patterns with Dify plugins. <!-- 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/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/94daffba-9997-4c76-be03-0c7c046ea8a6?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20%22slice%20indices%20must%20be%20integers%20or%20None%20or%20have%20an%20__index__%20method%22%20when%20configuring%20the%20tongyi-qwen%20plugin%20usually%20means%20the%20plugin%20daemon%20is%20returning%20a%20malformed%20or%20unexpected%20payload%2C%20often%20due%20to%20missing%20dependencies%20or%20a%20misconfigured%20environment%20in%20the%20plugin%27s%20isolated%20Python%20environment.%20This%20is%20a%20common%20issue%20with%20LLM%20plugins%20in%20Dify%27s%20Docker%20setup%2C%20especially%20if%20the%20plugin%27s%20requirements.txt%20is%20incomplete%20or%20dependencies%20failed%20to%20install%20during%20setup.%0A%0AHere%E2%80%99s%20what%20you%20can%20do%3A%0A%0A1.%20Enter%20the%20plugin%20daemon%20container%20and%20check%20the%20logs%20for%20errors%20related%20to%20the%20tongyi-qwen%20plugin.%20Look%20for%20missing%20dependencies%20or%20Python%20errors.%0A2.%20Ensure%20all%20required%20dependencies%20are%20listed%20in%20the%20plugin%E2%80%99s%20requirements.txt%20and%20are%20installed%20in%20the%20plugin%E2%80%99s%20%60.venv%60%20directory.%20If%20dependencies%20are%20missing%2C%20you%20can%20manually%20install%20them%3A%0A%20%20%20%60%60%60sh%0A%20%20%20docker%20exec%20-it%20docker-plugin_daemon-1%20bash%0A%20%20%20VENV%3D%24%28find%20/app/storage%20-maxdepth%205%20-type%20d%20-name%20%27.venv%27%20%7C%20head%20-n1%29%0A%20%20%20%22%24VENV/bin/python%22%20-m%20ensurepip%20--upgrade%20%7C%7C%20%28curl%20-fsSL%20https%3A//bootstrap.pypa.io/get-pip.py%20-o%20/tmp/get-pip.py%20%26%26%20%22%24VENV/bin/python%22%20/tmp/get-pip.py%29%0A%20%20%20%22%24VENV/bin/python%22%20-m%20pip%20install%20-U%20%3Cmissing-dependency%3E%0A%20%20%20exit%0A%20%20%20docker%20restart%20docker-plugin_daemon-1%0A%20%20%20%60%60%60%0A3.%20Double-check%20your%20plugin%20configuration%20parameters%E2%80%94make%20sure%20all%20values%20are%20the%20expected%20types%20%28e.g.%2C%20strings%2C%20not%20numbers%20or%20objects%29.%0A4.%20If%20you%20recently%20upgraded%20the%20plugin%2C%20try%20downgrading%20to%20a%20previous%20version%20%28e.g.%2C%20some%20users%20found%20downgrading%20from%200.0.25%20to%200.0.18%20resolved%20similar%20issues%20with%20Tongyi%20plugins%29%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/925%29.%0A5.%20Make%20sure%20your%20API%20keys%20are%20current%20and%20correctly%20formatted%2C%20as%20expired%20or%20malformed%20credentials%20can%20also%20cause%20plugin%20failures%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1936%29.%0A%0AIf%20the%20error%20persists%2C%20monitor%20the%20plugin%20daemon%20logs%20for%20more%20details%E2%80%94silent%20failures%20or%20malformed%20responses%20are%20often%20the%20root%20cause%20of%20this%20slice%20index%20error.%20There%20is%20currently%20no%20official%20documentation%20for%20tongyi-qwen%20plugin%20setup%2C%20so%20these%20troubleshooting%20steps%20are%20based%20on%20common%20patterns%20with%20Dify%20plugins.)&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/issues/29453)
Author
Owner

@one-leaf commented on GitHub (Dec 10, 2025):

@crazywoola I also encountered this problem, how did you fix it?

@one-leaf commented on GitHub (Dec 10, 2025): @crazywoola I also encountered this problem, how did you fix it?
Author
Owner

@crazywoola commented on GitHub (Dec 10, 2025):

Issues related to the plugins should not be posted in this repo. besides your provided information is not enough to guess what's going on.

@crazywoola commented on GitHub (Dec 10, 2025): Issues related to the plugins should not be posted in this repo. besides your provided information is not enough to guess what's going on.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20952