hermes - 💡(How to fix) Fix [Bug] Feishu/Lark: bot_p2p_chat_entered_v1 events flood errors.log with 'processor not found' [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#11632Fetched 2026-04-18 05:59:44
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1commented ×1

The Feishu (Lark) SDK continuously pushes im.chat.access_event.bot_p2p_chat_entered_v1 events to the gateway. These events have no registered processor in Hermes, causing the error log to be flooded with identical error messages at high frequency (every few seconds).

Error Message

The Feishu (Lark) SDK continuously pushes im.chat.access_event.bot_p2p_chat_entered_v1 events to the gateway. These events have no registered processor in Hermes, causing the error log to be flooded with identical error messages at high frequency (every few seconds). ERROR Lark: handle message failed, message_type: event, message_id: <uuid>, trace_id: <uuid>, err: processor not found, type: im.chat.access_event.bot_p2p_chat_entered_v1 [conn_id=<id>] This event fires every time the user opens the bot chat window, and can generate dozens of errors per minute. It makes the error log unusable for debugging actual issues. 2. Filter out unhandled event types at the Lark SDK level before they reach the error handler In the Feishu platform adapter (gateway/platforms/feishu.py), add bot_p2p_chat_entered_v1 and similar access events to an ignored/acknowledged event list, or register a pass-through processor that returns 200 without logging an error.

Root Cause

The Feishu (Lark) SDK continuously pushes im.chat.access_event.bot_p2p_chat_entered_v1 events to the gateway. These events have no registered processor in Hermes, causing the error log to be flooded with identical error messages at high frequency (every few seconds).

Code Example

ERROR Lark: handle message failed, message_type: event, message_id: <uuid>, trace_id: <uuid>, err: processor not found, type: im.chat.access_event.bot_p2p_chat_entered_v1 [conn_id=<id>]
RAW_BUFFERClick to expand / collapse

Description

The Feishu (Lark) SDK continuously pushes im.chat.access_event.bot_p2p_chat_entered_v1 events to the gateway. These events have no registered processor in Hermes, causing the error log to be flooded with identical error messages at high frequency (every few seconds).

Observed Behavior

The errors.log file grows rapidly with repeated identical entries:

ERROR Lark: handle message failed, message_type: event, message_id: <uuid>, trace_id: <uuid>, err: processor not found, type: im.chat.access_event.bot_p2p_chat_entered_v1 [conn_id=<id>]

This event fires every time the user opens the bot chat window, and can generate dozens of errors per minute. It makes the error log unusable for debugging actual issues.

Expected Behavior

Either:

  1. Register a no-op handler for bot_p2p_chat_entered_v1 (and similar access events) so they are silently accepted, OR
  2. Filter out unhandled event types at the Lark SDK level before they reach the error handler

Environment

  • Hermes Agent v0.9.x (gateway mode)
  • Platform: Feishu (Lark) via WebSocket
  • Feishu SDK: lark-oapi (Python)

Suggested Fix

In the Feishu platform adapter (gateway/platforms/feishu.py), add bot_p2p_chat_entered_v1 and similar access events to an ignored/acknowledged event list, or register a pass-through processor that returns 200 without logging an error.

extent analysis

TL;DR

Implementing a no-op handler or filtering unhandled event types for im.chat.access_event.bot_p2p_chat_entered_v1 events in the Feishu platform adapter can resolve the issue of flooded error logs.

Guidance

  • Identify and list all event types that are currently unhandled and causing errors, such as bot_p2p_chat_entered_v1, to determine which events need to be either ignored or handled with a no-op processor.
  • In gateway/platforms/feishu.py, add a mechanism to either ignore these events or register a pass-through processor that returns a success response (200) without logging an error, thus preventing the error log from being flooded.
  • Consider implementing a filter at the Lark SDK level to prevent unhandled event types from reaching the error handler, as an alternative or complementary solution.
  • Review the error handling logic to ensure that once the no-op handler or filtering is in place, the error logs will indeed decrease in volume and become more useful for debugging actual issues.

Example

# Example of a no-op handler in feishu.py
def noop_handler(event):
    # Silently accept the event without logging an error
    return 200

# Register the no-op handler for specific event types
event_handlers = {
    'im.chat.access_event.bot_p2p_chat_entered_v1': noop_handler,
    # Add other event types as needed
}

Notes

The solution assumes that the Feishu SDK and Hermes Agent versions are compatible and that the issue is solely due to unhandled event types. It's also important to monitor the system after implementing the fix to ensure that the error log volume decreases and that the no-op handler or filtering does not introduce any unintended side effects.

Recommendation

Apply a workaround by registering a no-op handler for unhandled event types, as this approach directly addresses the issue of flooded error logs without requiring significant changes to the existing system.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug] Feishu/Lark: bot_p2p_chat_entered_v1 events flood errors.log with 'processor not found' [1 comments, 1 participants]