mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #12349] issue: Can't use DuckDuckGo #16567
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 @eccentricpark on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12349
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.0
Ollama Version (if applicable)
v0.6.2
Operating System
Windows 11
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Hi,
I've tried searching the web using DuckDuckgo on open webui.
but, I'm getting error search and the results aren't coming out.
Can you tell me what's causing it, and what I need to do?
Actual Behavior
I'm getting error search and the results aren't coming out.
Steps to Reproduce
Logs & Screenshots
2025-04-02 23:19:46
2025-04-02 23:19:46
2025-04-02 23:19:46 During handling of the above exception, another exception occurred:
2025-04-02 23:19:46
2025-04-02 23:19:46
2025-04-02 23:19:46 Traceback (most recent call last):
2025-04-02 23:19:46
2025-04-02 23:19:46 File "/usr/local/bin/uvicorn", line 10, in
2025-04-02 23:19:46 sys.exit(main())
2025-04-02 23:19:46 │ │ └
2025-04-02 23:19:46 │ └
2025-04-02 23:19:46 └ <module 'sys' (built-in)>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
2025-04-02 23:19:46 return self.main(args, **kwargs)
2025-04-02 23:19:46 │ │ │ └ {}
2025-04-02 23:19:46 │ │ └ ()
2025-04-02 23:19:46 │ └ <function BaseCommand.main at 0x7f4128265da0>
2025-04-02 23:19:46 └
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
2025-04-02 23:19:46 rv = self.invoke(ctx)
2025-04-02 23:19:46 │ │ └ <click.core.Context object at 0x7f4128f2c310>
2025-04-02 23:19:46 │ └ <function Command.invoke at 0x7f4128266980>
2025-04-02 23:19:46 └
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
2025-04-02 23:19:46 return ctx.invoke(self.callback, **ctx.params)
2025-04-02 23:19:46 │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
2025-04-02 23:19:46 │ │ │ │ └ <click.core.Context object at 0x7f4128f2c310>
2025-04-02 23:19:46 │ │ │ └ <function main at 0x7f4127e454e0>
2025-04-02 23:19:46 │ │ └
2025-04-02 23:19:46 │ └ <function Context.invoke at 0x7f4128265300>
2025-04-02 23:19:46 └ <click.core.Context object at 0x7f4128f2c310>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
2025-04-02 23:19:46 return __callback(args, **kwargs)
2025-04-02 23:19:46 │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
2025-04-02 23:19:46 └ ()
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
2025-04-02 23:19:46 run(
2025-04-02 23:19:46 └ <function run at 0x7f412826fe20>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
2025-04-02 23:19:46 server.run()
2025-04-02 23:19:46 │ └ <function Server.run at 0x7f41280d1260>
2025-04-02 23:19:46 └ <uvicorn.server.Server object at 0x7f4128141550>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
2025-04-02 23:19:46 return asyncio.run(self.serve(sockets=sockets))
2025-04-02 23:19:46 │ │ │ │ └ None
2025-04-02 23:19:46 │ │ │ └ <function Server.serve at 0x7f41280d1300>
2025-04-02 23:19:46 │ │ └ <uvicorn.server.Server object at 0x7f4128141550>
2025-04-02 23:19:46 │ └ <function run at 0x7f41285d8b80>
2025-04-02 23:19:46 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2025-04-02 23:19:46 return runner.run(main)
2025-04-02 23:19:46 │ │ └ <coroutine object Server.serve at 0x7f4127ffe6b0>
2025-04-02 23:19:46 │ └ <function Runner.run at 0x7f4128448720>
2025-04-02 23:19:46 └ <asyncio.runners.Runner object at 0x7f4127e4f290>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2025-04-02 23:19:46 return self._loop.run_until_complete(task)
2025-04-02 23:19:46 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
2025-04-02 23:19:46 │ │ └ <cyfunction Loop.run_until_complete at 0x7f4127e85220>
2025-04-02 23:19:46 │ └ <uvloop.Loop running=True closed=False debug=False>
2025-04-02 23:19:46 └ <asyncio.runners.Runner object at 0x7f4127e4f290>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-04-02 23:19:46 await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-02 23:19:46 │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f409d90f9c0>
2025-04-02 23:19:46 │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f40dee60290>
2025-04-02 23:19:46 └ <open_webui.main.RedirectMiddleware object at 0x7f409e0c5e50>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
2025-04-02 23:19:46 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-02 23:19:46 │ │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f409d90f9c0>
2025-04-02 23:19:46 │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ │ │ └ <starlette.requests.Request object at 0x7f409d97ff10>
2025-04-02 23:19:46 │ │ └ <fastapi.routing.APIRouter object at 0x7f40dab2a7d0>
2025-04-02 23:19:46 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f40dee60290>
2025-04-02 23:19:46 └ <function wrap_app_handling_exceptions at 0x7f41254c72e0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-02 23:19:46 await app(scope, receive, sender)
2025-04-02 23:19:46 │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90c720>
2025-04-02 23:19:46 │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 └ <fastapi.routing.APIRouter object at 0x7f40dab2a7d0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
2025-04-02 23:19:46 await self.middleware_stack(scope, receive, send)
2025-04-02 23:19:46 │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90c720>
2025-04-02 23:19:46 │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f40dab2a7d0>>
2025-04-02 23:19:46 └ <fastapi.routing.APIRouter object at 0x7f40dab2a7d0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
2025-04-02 23:19:46 await route.handle(scope, receive, send)
2025-04-02 23:19:46 │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90c720>
2025-04-02 23:19:46 │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ └ <function Route.handle at 0x7f412531c9a0>
2025-04-02 23:19:46 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
2025-04-02 23:19:46 await self.app(scope, receive, send)
2025-04-02 23:19:46 │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90c720>
2025-04-02 23:19:46 │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ └ <function request_response..app at 0x7f409df17060>
2025-04-02 23:19:46 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
2025-04-02 23:19:46 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-02 23:19:46 │ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90c720>
2025-04-02 23:19:46 │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 │ │ └ <starlette.requests.Request object at 0x7f409d97c790>
2025-04-02 23:19:46 │ └ <function request_response..app..app at 0x7f409d90cea0>
2025-04-02 23:19:46 └ <function wrap_app_handling_exceptions at 0x7f41254c72e0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-02 23:19:46 await app(scope, receive, sender)
2025-04-02 23:19:46 │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f409d90cb80>
2025-04-02 23:19:46 │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f409d7bc0e0>
2025-04-02 23:19:46 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
2025-04-02 23:19:46 └ <function request_response..app..app at 0x7f409d90cea0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
2025-04-02 23:19:46 response = await f(request)
2025-04-02 23:19:46 │ └ <starlette.requests.Request object at 0x7f409d97c790>
2025-04-02 23:19:46 └ <function get_request_handler..app at 0x7f409dcaf7e0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
2025-04-02 23:19:46 raw_response = await run_endpoint_function(
2025-04-02 23:19:46 └ <function run_endpoint_function at 0x7f412531e7a0>
2025-04-02 23:19:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
2025-04-02 23:19:46 return await dependant.call(**values)
2025-04-02 23:19:46 │ │ └ {'user': UserModel(id='b3177fab-d79d-4076-9522-f18f7b17cc71', name='Park', email='enqlqkr@gmail.com', role='admin', profile_i...
2025-04-02 23:19:46 │ └ <function chat_completion at 0x7f409dcae3e0>
2025-04-02 23:19:46 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
2025-04-02 23:19:46
2025-04-02 23:19:46 File "/app/backend/open_webui/main.py", line 1087, in chat_completion
2025-04-02 23:19:46 form_data, metadata, events = await process_chat_payload(
2025-04-02 23:19:46 │ │ └ <function process_chat_payload at 0x7f40daf2b6a0>
2025-04-02 23:19:46 │ └ {'user_id': 'b3177fab-d79d-4076-9522-f18f7b17cc71', 'chat_id': 'd2ab423b-0d2c-4162-bf45-2ea28d51dc19', 'message_id': '51c20f7...
2025-04-02 23:19:46 └ {'stream': True, 'model': 'tulu3:8b', 'messages': [{'role': 'user', 'content': 'Search Flutter, and Please Tell me What is Fl...
2025-04-02 23:19:46
2025-04-02 23:19:46 File "/app/backend/open_webui/utils/middleware.py", line 770, in process_chat_payload
2025-04-02 23:19:46 form_data = await chat_web_search_handler(
2025-04-02 23:19:46 └ <function chat_web_search_handler at 0x7f40daf29260>
2025-04-02 23:19:46
2025-04-02 23:19:46 > File "/app/backend/open_webui/utils/middleware.py", line 374, in chat_web_search_handler
2025-04-02 23:19:46 results = await process_web_search(
2025-04-02 23:19:46 └ <function process_web_search at 0x7f40dec83a60>
2025-04-02 23:19:46
2025-04-02 23:19:46 File "/app/backend/open_webui/routers/retrieval.py", line 1440, in process_web_search
2025-04-02 23:19:46 raise HTTPException(
2025-04-02 23:19:46 └ <class 'fastapi.exceptions.HTTPException'>
2025-04-02 23:19:46
2025-04-02 23:19:46 fastapi.exceptions.HTTPException: 400: https://lite.duckduckgo.com/lite/ return None. params=None content=None data={'q': "{\n const LoginScreen({Key? key}) : super(key: key);\n\n @override\n Widget build(BuildContext context) {\n final loginViewModel = ViewModelProvider.of(context);\n \n return Scaffold(\n appBar: AppBar(title: Text('Login')),\n body: Padding(\n padding: EdgeInsets.all(16.0),\n child: Column(\n crossAxisAlignment: CrossAxisAlignment.start,\n children: [\n TextField(\n decoration: InputDecoration(labelText: 'Email'),\n onChanged: loginViewModel.setEmail,\n ),\n SizedBox(height: 8.0),\n TextField(\n obscureText: true,\n decoration: InputDecoration(labelText: 'Password'),\n onChanged: loginViewModel.setPassword,\n ),\n SizedBox(height: 24.0),\n ElevatedButton(\n onPressed: loginViewModel.login, // Login functionality here\n child: Text('Login'),\n )\n ],\n ),\n ),\n );\n }\n}\n
\n\n**signup_screen.dart**\ndart\nimport 'package:flutter/material.dart';\nimport 'package:my_flutter_app/features/auth/signup/view_model/signup_view_model.dart';\n\nclass SignupScreen extends StatelessWidget {\n const SignupScreen({Key? key}) : super(key: key);\n\n @override\n Widget build(BuildContext context) {\n final signupViewModel = ViewModelProvider.of(context);\n \n return Scaffold(\n appBar: AppBar(title: Text('Sign Up')),\n body: Padding(\n padding: EdgeInsets.all(16.0),\n child: Column(\n crossAxisAlignment: CrossAxisAlignment.start,\n children: [\n TextField(\n decoration: InputDecoration(labelText: 'Name'),\n onChanged: signupViewModel.setName,\n ),\n SizedBox(height: 8.0),\n TextField(\n decoration: InputDecoration(labelText: 'Email'),\n onChanged: signupViewModel.setEmail,\n ),\n SizedBox(height: 8.0),\n TextField(\n obscureText: true,\n decoration: InputDecoration(labelText: 'Password'),\n onChanged: signupViewModel.setPassword,\n ),\n SizedBox(height: 24.0),\n ElevatedButton(\n onPressed: signupViewModel.signUp, // Sign Up functionality here\n child: Text('Sign Up'),\n )\n ],\n ),\n ),\n );\n }\n}\n\n\n**dashboard.dart**\ndart\nimport 'package:flutter/material.dart';\nimport 'package:my_flutter_app/features/home/view_model/dashboard_view_model.dart';\n\nclass Dashboard extends StatelessWidget {\n const Dashboard({Key? key}) : super(key: key);\n\n @override\n Widget build(BuildContext context) {\n final dashboardViewModel = ViewModelProvider.of(context);\n \n return Scaffold(\n appBar: AppBar(title: Text('Dashboard')),\n body: Center(\n child: Column(\n mainAxisAlignment: MainAxisAlignment.center,\n children: [\n Text('Welcome, ' + (dashboardViewModel.user?.name ?? 'Guest')),\n SizedBox(height: 16.0),\n ElevatedButton(\n onPressed: () => dashboardViewModel.navigateToShowProfile(), \n child: Text('View Profile'),\n )\n ],\n ),\n ),\n );\n }\n}", 's': '0', 'o': 'json', 'api': 'd.js', 'vqd': '', 'kl': 'wt-wt', 'bing_market': 'wt-wt'}2025-04-02 23:19:47 2025-04-02 14:19:47.635 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:41656 - "POST /api/chat/completions HTTP/1.1" 200 - {}
2025-04-02 23:19:47 2025-04-02 14:19:47.651 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:41656 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
2025-04-02 23:20:11 2025-04-02 14:20:11.964 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:34734 - "POST /api/chat/completed HTTP/1.1" 200 - {}
2025-04-02 23:20:11 2025-04-02 14:20:11.999 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:34734 - "POST /api/v1/chats/d2ab423b-0d2c-4162-bf45-2ea28d51dc19 HTTP/1.1" 200 - {}
2025-04-02 23:20:12 2025-04-02 14:20:12.006 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:34734 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
Additional Information
No response