Skip to content

argument list too long #619

@davama

Description

@davama

Hello,

We have a simple hook that accepts the headers and payload as arguments for the script:

    {
        "id": "microservice",
        "execute-command": "script.py",
        "command-working-directory": "/etc/webhook",
        "include-command-output-in-response": true,
        "pass-arguments-to-command": [
            {
                "source": "entire-headers"
            },
            {
                "source": "entire-payload"
            }
        ]
    }

We are trying to send a payload with thousands of keys, but webhook gives this error:

[webhook] 2023/01/19 15:09:55 [94fef6] error occurred: fork/exec /etc/webhook/script.py: argument list too long

Looking around I found this issue/comment which mentioned the stream output approach.

There is also this PR which implements this stream option.

So I simply wanted to make sure, is the PR and the issue option the same solution?
And would it help me to solve my issue?

Any input is appreciated

Best,
Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions