[GH-ISSUE #7853] embeding api issue #5022

Closed
opened 2026-04-12 16:05:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @sycbbyes on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7853

What is the issue?

when call ollama 、api/embed, there is python error with message:
ollama-webui | 2024-11-27T04:25:57.120363066Z ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have dict attribute')]
ollama-webui | 2024-11-27T04:26:04.202107805Z INFO: 172.19.0.1:56148 - "POST /ollama/api/embed HTTP/1.1" 500 Internal Server Error
ollama-webui | 2024-11-27T04:26:04.216128921Z ERROR: Exception in ASGI application
ollama-webui | 2024-11-27T04:26:04.216161929Z Traceback (most recent call last):
ollama-webui | 2024-11-27T04:26:04.216170778Z File "/usr/local/lib/python3.11/site-packages/fastapi/encoders.py", line 324, in jsonable_encoder
ollama-webui | 2024-11-27T04:26:04.216178272Z data = dict(obj)
ollama-webui | 2024-11-27T04:26:04.216184675Z ^^^^^^^^^
ollama-webui | 2024-11-27T04:26:04.216190906Z TypeError: 'coroutine' object is not iterable

OS

No response

GPU

No response

CPU

No response

Ollama version

0.4.5

Originally created by @sycbbyes on GitHub (Nov 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7853 ### What is the issue? when call ollama 、api/embed, there is python error with message: ollama-webui | 2024-11-27T04:25:57.120363066Z ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')] ollama-webui | 2024-11-27T04:26:04.202107805Z INFO: 172.19.0.1:56148 - "POST /ollama/api/embed HTTP/1.1" 500 Internal Server Error ollama-webui | 2024-11-27T04:26:04.216128921Z ERROR: Exception in ASGI application ollama-webui | 2024-11-27T04:26:04.216161929Z Traceback (most recent call last): ollama-webui | 2024-11-27T04:26:04.216170778Z File "/usr/local/lib/python3.11/site-packages/fastapi/encoders.py", line 324, in jsonable_encoder ollama-webui | 2024-11-27T04:26:04.216178272Z data = dict(obj) ollama-webui | 2024-11-27T04:26:04.216184675Z ^^^^^^^^^ ollama-webui | 2024-11-27T04:26:04.216190906Z TypeError: 'coroutine' object is not iterable ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.4.5
GiteaMirror added the bug label 2026-04-12 16:05:25 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 27, 2024):

Issues with open-webui can be filed here.

<!-- gh-comment-id:2503415739 --> @rick-github commented on GitHub (Nov 27, 2024): Issues with open-webui can be filed [here](https://github.com/open-webui/open-webui/issues).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5022