something went wrong string indices must be integers not str #944

Closed
opened 2025-11-11 14:34:06 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jars101 on GitHub (May 17, 2024).

Bug Report

Hello, no matter what I have tried I can't get open webui to interact with a1111. I keep on getting something went wrong string indices must be integers not str.
My openwebui instance runs on Ubuntu with python 3.11 and my a1111 I stance runs on win11 with python 3.10. I can access a1111 from openwebui host just fine. Also, running --api --share --listen flags on a1111 side

A1111 flags:
set COMMANDLINE_ARGS=--api --listen --share --server-name=10.254.254.86 --xformers --skip-torch-cuda-test --no-half-vae --api-log --medvram --api-auth=none --loglevel=DEBUG --theme=dark --update-check --no-prompt-history
Somewhere I read something that could be related however I'm unsure.. regarding mismatch of expected format from a1111 api's output (JSON)?

Description

Bug Summary:
When attempting to validate AUTOMATIC1111 Base URL through OpenWebUI > Admin > Settings > Images > http://10.254.254.86:7860 , I hit the connect icon/button and get something went wrong string indices must be integers not str error message. Please see image attached

Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]

Expected Behavior:
OpenWebUI should be able to interact normally with A1111 after validating AUTOMATIC1111 Base URL

Actual Behavior:
OpenWebUI can not interact with A1111 through API after validating AUTOMATIC1111 Base URL

Environment

  • **Open WebUI Version: v0.1.124 - docker version on Ubuntu with python v3.11

  • **Ollama (if applicable)

    • **A1111: v1.9.3, python: 3.10.6  •  torch: 2.1.2+cu121  •  xformers: 0.0.23.post1  •  gradio: 3.41.2  
  • Operating System: WebUI running on Ubuntu 23.04 - A1111 on win11

  • Browser (if applicable): Chrome Version 124.0.6367.208

Reproduction Details

Confirmation:

  • [X ] I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
Screenshot attached

Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Installation Method

[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Open Webui installed via Docker

user@pt104:~$ sudo docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URLS="http://10.254.254.87:11434;http://10.254.254.88:11434;http://10.254.254.89:11434" -e AUTOMATIC1111_BASE_URL=http://10.254.254.86:7860/ -e ENABLE_IMAGE_GENERATION=True --name open-webui --restart always ghcr.io/open-webui/open-webui:main

user@pt104:~$ python3.11 --version Python 3.11.4

Additional Information

Checking the logs from openwebui container I see GET /images/API/v1/models HTTP/1.1" 400 Bad Request. So to me is as if a1111 is returning not expected output. Screenshot attached.

Screenshot 2024-05-17 001350

WhatsApp Image 2024-05-17 at 00 07 19

Originally created by @jars101 on GitHub (May 17, 2024). # Bug Report Hello, no matter what I have tried I can't get open webui to interact with a1111. I keep on getting ***something went wrong string indices must be integers not str***. My openwebui instance runs on Ubuntu with python 3.11 and my a1111 I stance runs on win11 with python 3.10. I can access a1111 from openwebui host just fine. Also, running --api --share --listen flags on a1111 side A1111 flags: `set COMMANDLINE_ARGS=--api --listen --share --server-name=10.254.254.86 --xformers --skip-torch-cuda-test --no-half-vae --api-log --medvram --api-auth=none --loglevel=DEBUG --theme=dark --update-check --no-prompt-history ` Somewhere I read something that could be related however I'm unsure.. regarding mismatch of expected format from a1111 api's output (JSON)? ## Description **Bug Summary:** When attempting to validate AUTOMATIC1111 Base URL through OpenWebUI > Admin > Settings > Images > http://10.254.254.86:7860 , I hit the connect icon/button and get ***something went wrong string indices must be integers not str*** error message. Please see image attached **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] **Expected Behavior:** OpenWebUI should be able to interact normally with A1111 after validating AUTOMATIC1111 Base URL **Actual Behavior:** OpenWebUI can not interact with A1111 through API after validating AUTOMATIC1111 Base URL ## Environment - **Open WebUI Version: v0.1.124 - docker version on Ubuntu with python v3.11 - **Ollama (if applicable) - - **A1111: v1.9.3, python: 3.10.6  •  torch: 2.1.2+cu121  •  xformers: 0.0.23.post1  •  gradio: 3.41.2   - **Operating System:** WebUI running on Ubuntu 23.04 - A1111 on win11 - **Browser (if applicable):** Chrome Version 124.0.6367.208 ## Reproduction Details **Confirmation:** - [X ] I have read and followed all the instructions provided in the README.md. - [X] I am on the latest version of both Open WebUI and Ollama. - [ ] have included the browser console logs. - [X] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** Screenshot attached **Screenshots (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Installation Method [Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.] Open Webui installed via Docker `user@pt104:~$ sudo docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URLS="http://10.254.254.87:11434;http://10.254.254.88:11434;http://10.254.254.89:11434" -e AUTOMATIC1111_BASE_URL=http://10.254.254.86:7860/ -e ENABLE_IMAGE_GENERATION=True --name open-webui --restart always ghcr.io/open-webui/open-webui:main` `user@pt104:~$ python3.11 --version Python 3.11.4` ## Additional Information Checking the logs from openwebui container I see GET /images/API/v1/models HTTP/1.1" 400 Bad Request. So to me is as if a1111 is returning not expected output. Screenshot attached. ![Screenshot 2024-05-17 001350](https://github.com/open-webui/open-webui/assets/150213493/199fc5f0-ed4d-4159-ae6d-ef962f31d95d) ![WhatsApp Image 2024-05-17 at 00 07 19](https://github.com/open-webui/open-webui/assets/150213493/899c0307-efa6-45a1-a363-649ec0e5a331)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#944