mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #1024] Rag/Web requests have empty user_agent header causing rejection from some web sites #12303
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 @fbirlik on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1024
Bug Report
Description
Bug Summary:
Rag/Web requests (#url..) have empty User-Agent header causing some web sites denying the request
Expected Behavior:
Either a fix User-Agent or random User-Agent to imitate a real browser
Note
langchain_community.WebBaseLoader class used to fetch web pages has support for generating fake user agents using fake_useragent package in default use case. Installing this package is enough to start generating user agents.
@fbirlik commented on GitHub (Mar 3, 2024):
Following PR adds necessary package to requirements.txt. Tested with docker image
#1023