-
-
Notifications
You must be signed in to change notification settings - Fork 854
Closed
Description
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
Labels
No labels