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.6.18
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
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 provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
pydantic_core._pydantic_core.ValidationError: 1 validation error for Document
page_content
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/string_type
Additional Information
No response
Originally created by @Sean-CodeMaker on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16366
### 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.6.18
### Ollama Version (if applicable)
_No response_
### Operating System
macOS Sonoma
### 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 **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### Expected Behavior
{'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}
if search result.snippet is None,should skip this data
### Actual Behavior
{'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}
if search result.snippet is None,will be raise error
### Steps to Reproduce
1、open you open-webui website
2、select "web search"
3、input "Tell me today’s top news.",some will be error(when search result container None)
### Logs & Screenshots
2025-08-08 02:48:12.208 | ERROR | open_webui.utils.middleware:chat_web_search_handler:485 - 400: [ERROR: 1 validation error for Document
page_content
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/string_type] - {}
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1953, in process_web_search
docs = [
File "/app/backend/open_webui/routers/retrieval.py", line 1954, in <listcomp>
Document(
└ <class 'langchain_core.documents.base.Document'>
File "/usr/local/lib/python3.11/site-packages/langchain_core/documents/base.py", line 278, in __init__
super().__init__(page_content=page_content, **kwargs) # type: ignore[call-arg]
│ └ {'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}}
└ None
File "/usr/local/lib/python3.11/site-packages/langchain_core/load/serializable.py", line 130, in __init__
super().__init__(*args, **kwargs)
│ └ {'page_content': None, 'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news...
└ ()
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 253, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
│ │ │ │ └ Document()
│ │ │ └ {'page_content': None, 'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news...
│ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects>
│ └ SchemaValidator(title="Document", validator=Model(
│ ModelValidator {
│ revalidate: Never,
│ validator: ModelFi...
└ Document()
pydantic_core._pydantic_core.ValidationError: 1 validation error for Document
page_content
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/string_type
### Additional Information
_No response_
GiteaMirror
added the bug label 2026-05-25 07:51:57 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Sean-CodeMaker on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16366
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.18
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
chrome
Confirmation
README.md.Expected Behavior
{'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}
if search result.snippet is None,should skip this data
Actual Behavior
{'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}
if search result.snippet is None,will be raise error
Steps to Reproduce
1、open you open-webui website
2、select "web search"
3、input "Tell me today’s top news.",some will be error(when search result container None)
Logs & Screenshots
2025-08-08 02:48:12.208 | ERROR | open_webui.utils.middleware:chat_web_search_handler:485 - 400: [ERROR: 1 validation error for Document
page_content
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/string_type] - {}
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1953, in process_web_search
docs = [
File "/app/backend/open_webui/routers/retrieval.py", line 1954, in
Document(
└ <class 'langchain_core.documents.base.Document'>
File "/usr/local/lib/python3.11/site-packages/langchain_core/documents/base.py", line 278, in init
super().init(page_content=page_content, **kwargs) # type: ignore[call-arg]
│ └ {'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news.qq.com/'}}
└ None
File "/usr/local/lib/python3.11/site-packages/langchain_core/load/serializable.py", line 130, in init
super().init(*args, **kwargs)
│ └ {'page_content': None, 'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news...
└ ()
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 253, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
│ │ │ │ └ Document()
│ │ │ └ {'page_content': None, 'metadata': {'source': 'https://news.qq.com/', 'title': '腾讯新闻', 'snippet': None, 'link': 'https://news...
│ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects>
│ └ SchemaValidator(title="Document", validator=Model(
│ ModelValidator {
│ revalidate: Never,
│ validator: ModelFi...
└ Document()
pydantic_core._pydantic_core.ValidationError: 1 validation error for Document
page_content
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/string_type
Additional Information
No response
@tjbck commented on GitHub (Aug 8, 2025):
Addressed with 736b29ddca4f6a44ef0ccecc4a0bc07ca1d88caa!