Skip to content

[Bug]: Windows: hermes gateway crashes on startup with OSError WinError 87 #8978

@zuowanwuxin

Description

@zuowanwuxin

Bug Description

  • Windows 11/10
  • 运行 hermes gateway 立即崩溃
  • 错误信息包含 os.kill(pid, 0)SystemError
  • 原因:Windows 不支持 Unix signal 0,os.kill(pid, 0) 在 Windows 上会抛出 WinError 87

Steps to Reproduce

运行hermes gateway

Expected Behavior

gateway 正常运行

Actual Behavior

  • 运行 hermes gateway 立即崩溃
  • 错误信息包含 os.kill(pid, 0)SystemError

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

No response

Operating System

windows 11

Python Version

3.11.15

Hermes Version

0.8.0

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions