Skip to content

Observability Webhook returns 400 Bad Request when target is a Discord Webhook #162

Description

@rtdean93

Description: The AgentField observability webhook fails to deliver events to Discord because the payload schema sent by the Control Plane is incompatible with Discord’s API requirements. Discord returns an HTTP 400 Bad Request because the expected "content" or "embeds" fields are missing from the AgentField event JSON.

Steps to Reproduce:

Go to Settings > Observability Webhook in the AgentField dashboard.

Enter a valid Discord Webhook URL.

Trigger any event (e.g., start an agent execution).

Observe the Forwarder Status section.

Actual Results:

Last Error: non-2xx response: 400.

Events are dropped and moved to the Dead Letter Queue.

Expected Results: The platform should allow for a custom payload template or provide a "Discord Compatibility Mode" (similar to how some services append /github or /slack to the URL) to ensure the message is delivered.

Environment Info:

Platform: AgentField Cloud / Control Plane.

Target: Discord Webhook API.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions