Summary
The LINE Messaging API adapter (introduced in #23197, merged 2026-05-10) crashes on every incoming webhook event with:
AttributeError: 'LineAdapter' object has no attribute 'create_source'
As a result, no inbound LINE message is ever dispatched to the agent — webhooks return 200 but the user receives no reply.
Reproduction
- Configure a LINE Messaging API channel and set the webhook URL to a running Hermes gateway (
nousresearch/hermes-agent:latest).
- Set
LINE_CHANNEL_SECRET, LINE_CHANNEL_ACCESS_TOKEN, LINE_PUBLIC_URL, LINE_ALLOWED_USERS in .env.
- Send any text message to the bot from LINE.
Observed
ERROR hermes_plugins.line_platform.adapter: LINE: dispatch_event failed
Traceback (most recent call last):
File "/opt/hermes/plugins/platforms/line/adapter.py", line 877, in _handle_webhook
await self._dispatch_event(event)
File "/opt/hermes/plugins/platforms/line/adapter.py", line 910, in _dispatch_event
await self._handle_message_event(event)
File "/opt/hermes/plugins/platforms/line/adapter.py", line 962, in _handle_message_event
source_obj = self.create_source(
^^^^^^^^^^^^^^^^^^
AttributeError: 'LineAdapter' object has no attribute 'create_source'
Root cause
plugins/platforms/line/adapter.py:962 calls self.create_source(...), but the base adapter exposes this factory as build_source(...) — see plugins/platforms/irc/adapter.py:495 and plugins/platforms/teams/adapter.py for the established pattern. No create_source method exists anywhere in plugins/platforms/.
Fix
One-line: rename the call to self.build_source(...). Verified locally — once patched, LINE messages are dispatched and the agent replies as expected. PR incoming.
Environment
- Image:
nousresearch/hermes-agent:latest (pulled 2026-05-11)
- Platform: macOS host (arm64) via Docker, cloudflared quick tunnel
Summary
The LINE Messaging API adapter (introduced in #23197, merged 2026-05-10) crashes on every incoming webhook event with:
As a result, no inbound LINE message is ever dispatched to the agent — webhooks return 200 but the user receives no reply.
Reproduction
nousresearch/hermes-agent:latest).LINE_CHANNEL_SECRET,LINE_CHANNEL_ACCESS_TOKEN,LINE_PUBLIC_URL,LINE_ALLOWED_USERSin.env.Observed
Root cause
plugins/platforms/line/adapter.py:962callsself.create_source(...), but the base adapter exposes this factory asbuild_source(...)— seeplugins/platforms/irc/adapter.py:495andplugins/platforms/teams/adapter.pyfor the established pattern. Nocreate_sourcemethod exists anywhere inplugins/platforms/.Fix
One-line: rename the call to
self.build_source(...). Verified locally — once patched, LINE messages are dispatched and the agent replies as expected. PR incoming.Environment
nousresearch/hermes-agent:latest(pulled 2026-05-11)