`webhook_listeners` only supports events with less than 4000 characters payload due to background jobs limitation and may break a request
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
webhook_listeners creates a background job with a payload from the webhook event.
If the payload is bigger then:
- Webhook is not created
- A request creating the event fails
background job arguments cannot exceed 4000 characters
Intermediate solution: at least wrap it into a try catch block and log the error, so failed background job creation doesn't fail the request.
A proper solution is to store the data somewhere else or add support for large data in background jobs.
cc @come-nc @artonge
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with apps/webhook_listeners/lib/Listener/WebhooksEventListener.php at lines 27-60 and trace how the webhook event payload is passed to the background job. Verify the behavior when the payload exceeds 4000 characters. Done means oversized payloads no longer make webhook creation or the request fail, with the failure logged or the data handled by a durable alternative.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100