nextcloud / nextcloud/tables

Webhooks cannot be executed - background job arguments cannot exceed 4000 characters

Open
#2,132 5 comments 0 reactions 1 assignee View on GitHub

@enjeck is already working on this.

Since Jan 16, 2026.

1. to develop bug
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Steps to reproduce
  1. Create a rather large table.
  2. Enable webhooks for the table.
  3. Try to save a row.
Expected behavior

The save works (like it did in previous versions)

Actual behavior

An error is shown and the save does not work. It works if no webhook is registered, it is possible to save the row.

Tables app version

1.0.0

Browser

Zen (Firefox)

Client operating system

MacOS

Operating system

AIO

Web server

None

PHP engine version

None

Database

PostgreSQL

Additional info

What I do not understand: Why is so much data sent with the webhook? The current data can be fetched if needed via the API. I suspect that this could be the issue here.

{"reqId":"391HEf1xScrL2UyrglM1","level":2,"time":"2025-11-01T17:54:25+00:00","remoteAddr":"172.18.0.3","user":"eric.fischer","app":"tables","method":"PUT","url":"/apps/tables/row/133","message":"An invalid request occurred: Background job arguments can't exceed 4000 characters (json encoded)","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0","version":"31.0.10.2","exception":{"Exception":"InvalidArgumentException","Message":"Background job arguments can't exceed 4000 characters (json encoded)","Code":0,"Trace":[{"file":"/var/www/html/apps/webhook_listeners/lib/Listener/WebhooksEventListener.php","line":49,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->","args":["OCA\\WebhookListeners\\BackgroundJobs\\WebhookCall",[{"event":{"tableId":14,"rowId":"*** sensitive parameters replaced ***","previousValues":[{"columnId":94,"value":"false"},{"columnId":116,"value":"false"},{"columnId":110,"value":"true"},{"columnId":129,"value":"true"},{"columnId":128,"value":"true"},"And 32 more entries, set log level to debug to see all entries"],"values":[{"columnId":94,"value":"false"},{"columnId":116,"value":"false"},{"columnId":110,"value":"true"},{"columnId":129,"value":"true"},{"columnId":128,"value":"true"},"And 32 more entries, set log level to debug to see all entries"],"class":"OCA\\Tables\\Event\\RowUpdatedEvent"},"user":{"uid":"*** sensitive parameters replaced ***","displayName":"Eric Fischer"},"time":1762019665},33,"72e6d6db36"]]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":68,"function":"handle","class":"OCA\\WebhookListeners\\Listener\\WebhooksEventListener","type":"->","args":[{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"},"OCA\\Tables\\Event\\RowUpdatedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"}],"OCA\\Tables\\Event\\RowUpdatedEvent",{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"},"OCA\\Tables\\Event\\RowUpdatedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\Tables\\Event\\RowUpdatedEvent",{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"}]},{"file":"/var/www/html/custom_apps/tables/lib/Service/RowService.php","line":623,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Tables\\Event\\RowUpdatedEvent"}]},{"file":"/var/www/html/custom_apps/tables/lib/Controller/RowController.php","line":82,"function":"updateSet","class":"OCA\\Tables\\Service\\RowService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/tables/lib/Controller/Errors.php","line":23,"function":"OCA\\Tables\\Controller\\{closure}","class":"OCA\\Tables\\Controller\\RowController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/tables/lib/Controller/RowController.php","line":77,"function":"handleError","class":"OCA\\Tables\\Controller\\RowController","type":"->","args":[{"__class__":"Closure"}]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"updateSet","class":"OCA\\Tables\\Controller\\RowController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Tables\\Controller\\RowController"},"updateSet"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Tables\\Controller\\RowController"},"updateSet"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Tables\\Controller\\RowController","updateSet",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"133","_route":"tables.row.updateset"}]},{"file":"/var/www/html/lib/base.php","line":1063,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/tables/row/133"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/BackgroundJob/JobList.php","Line":47,"message":"An invalid request occurred: Background job arguments can't exceed 4000 characters (json encoded)","exception":[],"CustomMessage":"An invalid request occurred: Background job arguments can't exceed 4000 characters (json encoded)"},"id":"690649746b2e5"}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.