[GH-ISSUE #12285] issue: OWUI + Pipelines error list indices must be integers or slices, not str #55199

Closed
opened 2026-05-05 17:17:59 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @jkleinkauff on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12285

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.5.20

Ollama Version (if applicable)

No response

Operating System

macOS Sequoia 15.3.2

Browser (if applicable)

Chrome

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

I expect the Pipelines to run properly.
I'm probably not setting something?

Actual Behavior

When running OWUI + the pipelines project, I see "list indices must be integers or slices, not str" when I try to run any model(pipe). For this example specifically I was using the Wikipedia one. But in fact the pipeline service is never reached, the error is in OWUI codebase.

When debugging, the error seems to come from this file:
https://github.com/open-webui/open-webui/blob/v0.5.20/backend/open_webui/routers/pipelines.py#L75

urlIdx will be a str. Then, we try to access the list index using this string. You can see what I mean in the image below.

Image

If I use
request.app.state.config.OPENAI_API_BASE_URLS[0]
I can get past this error.

Steps to Reproduce

  1. Clone OpenWebUI tag v0.5.20
  2. Clone the Pipelines project.
  3. Add any Pipeline.
  4. Try to run it.

Logs & Screenshots

Image Image

Additional Information

The error seems easy to reproduce, this is why I may be setting something wrong or not setting at all?

Originally created by @jkleinkauff on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12285 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.5.20 ### Ollama Version (if applicable) _No response_ ### Operating System macOS Sequoia 15.3.2 ### Browser (if applicable) Chrome ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior I expect the Pipelines to run properly. I'm probably not setting something? ### Actual Behavior When running OWUI + the pipelines project, I see "list indices must be integers or slices, not str" when I try to run any model(pipe). For this example specifically I was using the Wikipedia one. But in fact the pipeline service is never reached, the error is in OWUI codebase. When debugging, the error seems to come from this file: https://github.com/open-webui/open-webui/blob/v0.5.20/backend/open_webui/routers/pipelines.py#L75 urlIdx will be a str. Then, we try to access the list index using this string. You can see what I mean in the image below. <img width="1577" alt="Image" src="https://github.com/user-attachments/assets/7938240a-beef-48f2-8511-adf0eaa67935" /> If I use `request.app.state.config.OPENAI_API_BASE_URLS[0]` I can get past this error. ### Steps to Reproduce 1. Clone OpenWebUI tag v0.5.20 2. Clone the Pipelines project. 3. Add any Pipeline. 4. Try to run it. ### Logs & Screenshots <img width="1123" alt="Image" src="https://github.com/user-attachments/assets/0bed5b53-3151-4a7f-ba6d-4a2b366bc42e" /> <img width="921" alt="Image" src="https://github.com/user-attachments/assets/43ca834f-0d5b-49ba-8b94-15e0ec59a729" /> ### Additional Information The error seems easy to reproduce, this is why I may be setting something wrong or not setting at all?
GiteaMirror added the bug label 2026-05-05 17:17:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#55199