mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #12403] issue: websearch has error with "'NoneType' object has no attribute 'encode'" #55254
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @greatji on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12403
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Windows 10 WSL2 Ubuntu 22.04
Browser (if applicable)
Chrome 134.0.6998.118
Confirmation
README.md.Expected Behavior
Got the information from the search engine jina.
Actual Behavior
Cannot process the pages fetched from the web.
Steps to Reproduce
Logs & Screenshots
2025-04-03 21:46:56.150 | ERROR | open_webui.routers.retrieval:save_docs_to_vector_db:904 - 'NoneType' object has no attribute 'encode' - {}
Traceback (most recent call last):
File "/home/sunji/anaconda3/lib/python3.12/threading.py", line 1032, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x7f94d282ccc0>
└ <WorkerThread(AnyIO worker thread, started 140272407139904)>
File "/home/sunji/anaconda3/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x7f93beb8a980>
└ <WorkerThread(AnyIO worker thread, started 140272407139904)>
File "/home/sunji/anaconda3/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 962, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function save_docs_to_vector_db at 0x7f93f82ae8e0>, <starlette.requests.Request object at 0x7f93b4477380>,...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x7f93b7e85840>
AttributeError: 'NoneType' object has no attribute 'encode'
Additional Information
No response
@zebulonjones commented on GitHub (Apr 3, 2025):
I am new to all of this, but maybe try changing embedding models? I had a similar issue a few versions back.