Skip to content

Can't pass the json payload #3746

@Kundan547

Description

@Kundan547

When creating a Sensor with an HTTP trigger, it is not possible to forward the incoming JSON payload directly to the downstream endpoint.

The payload section requires a dest field, but leaving it empty produces an error:

template http-trigger is invalid, payload index: 0. err: parameter destination can't be empty

This prevents sending the dependency event payload unchanged to an HTTP endpoint.

To Reproduce

Steps to reproduce the behavior:

Create an EventSource that emits a JSON payload.

Create a Sensor with an HTTP trigger, using payload with src.dataKey: body and leaving dest empty.

Apply the Sensor.

See error during validation.

Example Sensor snippet:

triggers:

Error:

template http-trigger is invalid, payload index: 0. err: parameter destination can't be empty

Expected behavior

The Sensor should allow forwarding the dependency event’s JSON payload without modification — i.e., support an option where the full body is passed directly to the HTTP request body, without requiring a dest mapping.

Environment

Kubernetes version: v1.32.2

Argo Events version: v3.6.10

Argo Workflows version: v3.6.10 (if relevant)

Additional context

The current workaround is to explicitly use dest: body, which wraps the payload correctly, but this is unintuitive and prevents forwarding the payload as-is.

Metadata

Metadata

Assignees

No one assigned

    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