[PR #10141] [CLOSED] fix(windows): set SelectorEventLoopPolicy to resolve aiodns error #9269

Closed
opened 2025-11-11 18:18:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/10141
Author: @chromaticsequence
Created: 2/16/2025
Status: Closed

Base: devHead: patch-1


📝 Commits (1)

  • ef58c23 fix(windows): set SelectorEventLoopPolicy to resolve aiodns error

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 backend/open_webui/main.py (+3 -0)

📄 Description

Pull Request Checklist

Created issue under the discussion tab as required for pull requests: (https://github.com/open-webui/open-webui/discussions/10813)

Before submitting, checked:

  • Target branch: dev
  • Description: Add WindowsSelectorEventLoopPolicy to resolve aiodns error
  • Changelog: Added entry below
  • Documentation: N/A (code-only fix)
  • Dependencies: No new dependencies
  • Testing: Confirmed working on Windows 11 23H2 + Python 3.11
  • Code review: Self-reviewed for style/standards

PR Title:
fix(windows): Set WindowsSelectorEventLoopPolicy to resolve aiodns error


Changelog Entry

Description

Resolved Windows-specific async I/O error affecting DNS resolution in aiodns.

Added

  • None

Changed

  • None

Deprecated

  • None

Removed

  • None

Fixed

  • Added Windows event loop policy configuration to main.py to enable SelectorEventLoop usage

Security

  • None

Breaking Changes

  • None - Behavior remains identical on non-Windows systems

Additional Information

References:

  • Fixes Windows users experiencing:

    ERROR [open_webui.routers.openai] aiodns needs SelectorEventLoop on Windows

  • Follows recommendation from aiodns Issue #86 (saghul/aiodns#86)
  • Validated on Windows 10 with 64-bit Python 3.11

Screenshots or Videos

N/A - Backend configuration change


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/10141 **Author:** [@chromaticsequence](https://github.com/chromaticsequence) **Created:** 2/16/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`ef58c23`](https://github.com/open-webui/open-webui/commit/ef58c233e3dbcfc9e233123f68e0848a13766205) fix(windows): set SelectorEventLoopPolicy to resolve aiodns error ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+3 -0) </details> ### 📄 Description # Pull Request Checklist ### Created issue under the discussion tab as required for pull requests: (https://github.com/open-webui/open-webui/discussions/10813) **Before submitting, checked:** - [x] **Target branch:** `dev` - [x] **Description:** Add WindowsSelectorEventLoopPolicy to resolve aiodns error - [x] **Changelog:** Added entry below - [x] **Documentation:** N/A (code-only fix) - [x] **Dependencies:** No new dependencies - [x] **Testing:** Confirmed working on Windows 11 23H2 + Python 3.11 - [x] **Code review:** Self-reviewed for style/standards **PR Title:** `fix(windows): Set WindowsSelectorEventLoopPolicy to resolve aiodns error` --- # Changelog Entry ### Description Resolved Windows-specific async I/O error affecting DNS resolution in aiodns. ### Added - None ### Changed - None ### Deprecated - None ### Removed - None ### Fixed - Added Windows event loop policy configuration to `main.py` to enable SelectorEventLoop usage ### Security - None ### Breaking Changes - **None** - Behavior remains identical on non-Windows systems --- ### Additional Information **References:** - Fixes Windows users experiencing: > ERROR [open_webui.routers.openai] aiodns needs SelectorEventLoop on Windows - Follows recommendation from aiodns Issue #86 ([saghul/aiodns#86](https://github.com/saghul/aiodns/issues/86)) - Validated on Windows 10 with 64-bit Python 3.11 ### Screenshots or Videos _N/A - Backend configuration change_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:18:14 -06: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#9269