mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #10156] Allow User Location setting breaks UI when user blocks location requests #86526
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 @jpiccari on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10156
Bug Report
Important Notes
Before submitting a bug report: Please check the Issues or Discussions section to see if a similar issue or feature request has already been posted. It's likely we're already tracking it! If you’re unsure, start a discussion post first. This will help us efficiently focus on improving the project.
Collaborate respectfully: We value a constructive attitude, so please be mindful of your communication. If negativity is part of your approach, our capacity to engage may be limited. We’re here to help if you’re open to learning and communicating positively. Remember, Open WebUI is a volunteer-driven project managed by a single maintainer and supported by contributors who also have full-time jobs. We appreciate your time and ask that you respect ours.
Contributing: If you encounter an issue, we highly encourage you to submit a pull request or fork the project. We actively work to prevent contributor burnout to maintain the quality and continuity of Open WebUI.
Bug reproducibility: If a bug cannot be reproduced with a
:mainor:devDocker setup, or a pip install with Python 3.11, it may require additional help from the community. In such cases, we will move it to the "issues" Discussions section due to our limited resources. We encourage the community to assist with these issues. Remember, it’s not that the issue doesn’t exist; we need your help!Note: Please remove the notes above when submitting your post. Thank you for your understanding and support!
Installation Method
Docker
ghcr.io/open-webui/open-webui:mainakaghcr.io/open-webui/open-webui@sha256:1623214ac0c180cc1f527df3c2cb2be69bd0911016a565edc15e91b4e6ab99ddEnvironment
Open WebUI Version: v0.5.12
Ollama (if applicable): v0.5.11
Operating System: iOS 18.3
Browser (if applicable): Safari
Confirmation:
Expected Behavior:
Chat response loading UI is replaced with text responses eventually.
Actual Behavior:
UI appears to hang forever, never returning chat responses.
Description
Bug Summary:
When
Allow User Locationsetting in Open WebUI is enabled, and the user has disabled location services at the site/browser/OS level, the UI never displays chat response text.Reproduction Details
Steps to Reproduce:
Allow User Locationin Open WebUI setting (be sure to save)a. On iOS you can disable Location Services for all of Safari via Settings -> Privacy & Security -> Location Services -> Safari and selecting Never
b. On Brave browser you can disable location access using the button to the left of the URL in the address bar
c. You can also switch to a browser which doesn't support location or simply decline/block Open WebUI's location request when it opens
Logs and Screenshots
Browser Console Logs:
Logs from iOS Safari where I first noticed the issue
Logs from Brave browser on desktop
Docker Container Logs:
Not applicable, no relevant logs are appear during this issue.
Screenshots/Screen Recordings (if applicable):
None.
Additional Information
Poking around slightly, the issue seems to stem from throwing an exception when the
navigator.geolocation.getCurrentPosition()is rejected. The catch block here throws the exception, rather than gracefully handling the lack of user location data.There are several ways to trigger this bug. I first noticed by enabling user location on my desktop, then attempting to access with iOS where I have location services disabled for all of Safari. I tested a few quick ideas and put them in the repro steps but there may be other scenarios I missed.
Would be willing to submit a PR but figured there were a few directions that the fix could go and should consult the maintainers first.
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Feb 18, 2025):
Addressed with 16ce8ab16c05c76b58477b86b93a99418d3b51a2!
@johnschult commented on GitHub (Mar 7, 2026):
Still experiencing this on v0.8.8 with a slightly different failure mode.
When the Comet (Perplexity) browser prompts for location access on the OWUI site, allowing location causes the prompt response to hang indefinitely. Denying works fine. Safari and Edge work correctly either way, allow or deny.
The geolocation promise appears to never resolve in Comet when allowed, blocking the completion response.
@Classic298 commented on GitHub (Mar 7, 2026):
if your browser doesnt have access to the location, the prompt will hang for so long until your location is determined. check your OS' permission system
@johnschult commented on GitHub (Mar 7, 2026):
@Classic298 Confirmed Comet has location access at the OS level and geolocation works correctly on other sites (Google resolves exact location without issue, and so do other sites that ask for location permission). The issue is specific to OWUI... when the browser prompts for location on the OWUI site and I allow it, the completion response hangs indefinitely.