[GH-ISSUE #11578] issue: Bing Web Search is 404'ing #16281

Closed
opened 2026-04-19 22:15:18 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @sfarthin on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11578

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.5.20

Ollama Version (if applicable)

No response

Operating System

python:3.11-slim-bookworm

Browser (if applicable)

No response

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 listed steps to reproduce the bug in detail.

Expected Behavior

Successful web searches on Bing or an authenticated error if key is incorrect.

Actual Behavior

Bing searches are failing after inputting appropriate endpoint and key. The docker logs read as requests.exceptions.HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3. This seems to suggest the Bing integration is not working as intended.

Steps to Reproduce

  1. Setup Google Bing API in Azure
  2. Copy over endpoint and access key into WebUI
  3. Select "Web Search", and execute new search.

Logs & Screenshots

Settings Azure Portal for Bing API

Image

Settings in WebUI

Image

Example Query

Image

Logs

  File "/app/backend/open_webui/main.py", line 1043, in chat_completion
    form_data, metadata, events = await process_chat_payload(
    │          │                        └ <function process_chat_payload at 0x7fb2e7b80c20>
    │          └ {'user_id': 'cb0ae28b-f10b-49bf-9a34-a815226aa364', 'chat_id': 'a2694be1-63fe-43dc-933c-b31e759d1b58', 'message_id': '325e041...
    └ {'stream': True, 'model': 'litellm_manifold_pipeline.gpt-4o', 'messages': [{'role': 'user', 'content': 'WHat is wegmans'}], '...
  File "/app/backend/open_webui/utils/middleware.py", line 736, in process_chat_payload
    form_data = await chat_web_search_handler(
                      └ <function chat_web_search_handler at 0x7fb2e7b80f40>
> File "/app/backend/open_webui/utils/middleware.py", line 341, in chat_web_search_handler
    results = await process_web_search(
                    └ <function process_web_search at 0x7fb2eb0a8540>
  File "/app/backend/open_webui/routers/retrieval.py", line 1426, in process_web_search
    raise HTTPException(
          │     │      └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.3', 3000), 'c...
          │    │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7fb2e5f5ea20>
2025-03-12 12:34:53.098 | INFO     | open_webui.routers.retrieval:process_web_search:1417 - trying to web search with ('bing', 'Wegmans grocery store history') - {}
2025-03-12 12:34:53.134 | ERROR    | open_webui.retrieval.web.bing:search_bing:45 - Error: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3 - {}
requests.exceptions.HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3

After failure

Image

Additional Information

No response

Originally created by @sfarthin on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11578 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.5.20 ### Ollama Version (if applicable) _No response_ ### Operating System python:3.11-slim-bookworm ### Browser (if applicable) _No response_ ### 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 listed steps to reproduce the bug in detail. ### Expected Behavior Successful web searches on Bing or an authenticated error if key is incorrect. ### Actual Behavior Bing searches are failing after inputting appropriate endpoint and key. The docker logs read as `requests.exceptions.HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3`. This seems to suggest the Bing integration is not working as intended. ### Steps to Reproduce 1. Setup Google Bing API in Azure 2. Copy over endpoint and access key into WebUI 3. Select "Web Search", and execute new search. ### Logs & Screenshots ### Settings Azure Portal for Bing API ![Image](https://github.com/user-attachments/assets/f5c49403-dd7d-49bf-93f9-aabd4ff0b8e0) ### Settings in WebUI ![Image](https://github.com/user-attachments/assets/8c331ee2-d477-499a-82e5-264651b787e1) ### Example Query ![Image](https://github.com/user-attachments/assets/365e992e-00b3-47ad-a289-35eadbc71912) ### Logs ``` File "/app/backend/open_webui/main.py", line 1043, in chat_completion form_data, metadata, events = await process_chat_payload( │ │ └ <function process_chat_payload at 0x7fb2e7b80c20> │ └ {'user_id': 'cb0ae28b-f10b-49bf-9a34-a815226aa364', 'chat_id': 'a2694be1-63fe-43dc-933c-b31e759d1b58', 'message_id': '325e041... └ {'stream': True, 'model': 'litellm_manifold_pipeline.gpt-4o', 'messages': [{'role': 'user', 'content': 'WHat is wegmans'}], '... File "/app/backend/open_webui/utils/middleware.py", line 736, in process_chat_payload form_data = await chat_web_search_handler( └ <function chat_web_search_handler at 0x7fb2e7b80f40> > File "/app/backend/open_webui/utils/middleware.py", line 341, in chat_web_search_handler results = await process_web_search( └ <function process_web_search at 0x7fb2eb0a8540> File "/app/backend/open_webui/routers/retrieval.py", line 1426, in process_web_search raise HTTPException( │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.3', 3000), 'c... │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7fb2e5f5ea20> 2025-03-12 12:34:53.098 | INFO | open_webui.routers.retrieval:process_web_search:1417 - trying to web search with ('bing', 'Wegmans grocery store history') - {} 2025-03-12 12:34:53.134 | ERROR | open_webui.retrieval.web.bing:search_bing:45 - Error: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3 - {} requests.exceptions.HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/?q=Wegmans+grocery+store+history&mkt=&count=3 ``` ### After failure ![Image](https://github.com/user-attachments/assets/e3d3a027-a0f3-4afc-97db-4b1528044918) ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 22:15:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16281