T
Twenty5mo ago
Blessing

webhooks not firing (docker compose setup)

Need some help with setting up webhooks. I've got the sever running - google auth, email + calendar sync, API, etc. But i can't get webhooks running. I've upload a screenshot of docker compose logs -f worker As far as I can tell the worker is running, but webhooks do not fire even though multiple are registered. 1 configured manually through the UI and a few via the API. This is my redis confi on both the sever and worker: REDIS_URL: ${REDIS_URL:-redis://redis:6379}
No description
20 Replies
Blessing
BlessingOP5mo ago
apparently the webhook queue is running
No description
Blessing
BlessingOP5mo ago
but my handlers aren't getting requests and I dont see logs indicating that events are emitting when a record changes.
ɃØĦɆᵾS
ɃØĦɆᵾS5mo ago
Redis setup shouldn't interfere with webhooks as redis is only a cache, about the logs, logs should look something like this
[1] query: SELECT "workflowAutomatedTrigger"."type" AS "workflowAutomatedTrigger_type", "workflowAutomatedTrigger"."settings" AS "workflowAutomatedTrigger_settings", "workflowAutomatedTrigger"."id" AS "workflowAutomatedTrigger_id", "workflowAutomatedTrigger"."createdAt" AS "workflowAutomatedTrigger_createdAt", "workflowAutomatedTrigger"."updatedAt" AS "workflowAutomatedTrigger_updatedAt", "workflowAutomatedTrigger"."deletedAt" AS "workflowAutomatedTrigger_deletedAt", "workflowAutomatedTrigger"."workflowId" AS "workflowAutomatedTrigger_workflowId" FROM "workspace_1wgvd1injqtife6y4rvfbu3h5"."workflowAutomatedTrigger" "workflowAutomatedTrigger" WHERE ( (("workflowAutomatedTrigger"."type" = $1) AND ("workflowAutomatedTrigger"."settings"->>'eventName' = $2)) ) AND ( "workflowAutomatedTrigger"."deletedAt" IS NULL ) -- PARAMETERS: ["DATABASE_EVENT","timelineActivity.created"]
[1] query: SELECT "workflowAutomatedTrigger"."type" AS "workflowAutomatedTrigger_type", "workflowAutomatedTrigger"."settings" AS "workflowAutomatedTrigger_settings", "workflowAutomatedTrigger"."id" AS "workflowAutomatedTrigger_id", "workflowAutomatedTrigger"."createdAt" AS "workflowAutomatedTrigger_createdAt", "workflowAutomatedTrigger"."updatedAt" AS "workflowAutomatedTrigger_updatedAt", "workflowAutomatedTrigger"."deletedAt" AS "workflowAutomatedTrigger_deletedAt", "workflowAutomatedTrigger"."workflowId" AS "workflowAutomatedTrigger_workflowId" FROM "workspace_1wgvd1injqtife6y4rvfbu3h5"."workflowAutomatedTrigger" "workflowAutomatedTrigger" WHERE ( (("workflowAutomatedTrigger"."type" = $1) AND ("workflowAutomatedTrigger"."settings"->>'eventName' = $2)) ) AND ( "workflowAutomatedTrigger"."deletedAt" IS NULL ) -- PARAMETERS: ["DATABASE_EVENT","timelineActivity.created"]
Could you please check if webhook are sent properly to webhook testing page like https://webhook-test.com/ or https://webhook.site/ to ensure that problem lies in worker itself and not network like firewall and such?
Webhook Tester | Simple & Free Webhook Testing Tool
Experience instant, free access to a unique URL and email address at webhook-test.com. Test, inspect, and automate incoming HTTP requests effortlessly with our powerful tools, including a visual workflow editor and customizable scripts. Streamline your testing process and enhance your automation
Webhook.site - Test, transform and automate Web requests and emails
Instantly generate a free, unique URL and email address to test, inspect, and automate (with a visual workflow editor and scripts) incoming HTTP requests and emails
Blessing
BlessingOP5mo ago
So the webhook at https://webhook.site/ worked. Heres some more context. Webhooks that I created via the interface are stored in core.webhook and they all work. Webhooks made via the API, stored in a different datatbase schema named workspace_dvj<other letters>.webhook are not firing for the same events.
Prastoin
Prastoin5mo ago
Hey @martmull could you please have a look to this when you have some free time ? Hello @Blessing, what Twenty version are you self hosting please ? ( echo $APP_VERSION in you twenty-server container ) Also what's your workspace version located at default.core.workspace.version ?
Blessing
BlessingOP5mo ago
/app/packages/twenty-server $ echo $APP_VERSION
v1.1.1
/app/packages/twenty-server $ echo $APP_VERSION
v1.1.1
select version from core.workspace;
select version from core.workspace;
version = 1.1.1
martmull
martmull5mo ago
@Blessing can you send us some records of those webhooks created via the rest api? Offuscate URLS and secret please
Blessing
BlessingOP5mo ago
the ones in the workspace_ schema?
{
"data": {
"webhooks": [
{
"targetUrl": "https://PRODUCTION/webhook/c32452de...",
"operations": [
"person.created",
"person.updated",
"engagement.updated"
],
"description": "",
"secret": "",
"id": "30841356-a60d-4096-af3f-7af3851864f9",
"createdAt": "2025-07-21T12:19:07.735Z",
"updatedAt": "2025-07-21T12:19:07.735Z",
"deletedAt": null
},
{
"targetUrl": "https://webhook.site/2d3ad58f...",
"operations": [
"person.updated",
"engagement.updated"
],
"description": ",
"secret": "",
"id": "cfdbee12-132c-4537-84f9-1c1c3861a8f1",
"createdAt": "2025-07-21T12:38:33.397Z",
"updatedAt": "2025-07-21T12:38:33.397Z",
"deletedAt": null
}
]
},
"pageInfo": {
"hasNextPage": false,
"startCursor": "eyJpZCI6IjMwODQxMzU2LWE2MGQtNDA5Ni1hZjNmLTdhZjM4NTE4NjRmOSJ9",
"endCursor": "eyJpZCI6ImNmZGJlZTEyLTEzMmMtNDUzNy04NGY5LTFjMWMzODYxYThmMSJ9"
},
"totalCount": 2
}
{
"data": {
"webhooks": [
{
"targetUrl": "https://PRODUCTION/webhook/c32452de...",
"operations": [
"person.created",
"person.updated",
"engagement.updated"
],
"description": "",
"secret": "",
"id": "30841356-a60d-4096-af3f-7af3851864f9",
"createdAt": "2025-07-21T12:19:07.735Z",
"updatedAt": "2025-07-21T12:19:07.735Z",
"deletedAt": null
},
{
"targetUrl": "https://webhook.site/2d3ad58f...",
"operations": [
"person.updated",
"engagement.updated"
],
"description": ",
"secret": "",
"id": "cfdbee12-132c-4537-84f9-1c1c3861a8f1",
"createdAt": "2025-07-21T12:38:33.397Z",
"updatedAt": "2025-07-21T12:38:33.397Z",
"deletedAt": null
}
]
},
"pageInfo": {
"hasNextPage": false,
"startCursor": "eyJpZCI6IjMwODQxMzU2LWE2MGQtNDA5Ni1hZjNmLTdhZjM4NTE4NjRmOSJ9",
"endCursor": "eyJpZCI6ImNmZGJlZTEyLTEzMmMtNDUzNy04NGY5LTFjMWMzODYxYThmMSJ9"
},
"totalCount": 2
}
martmull
martmull5mo ago
Ok, webhook entities has been migrated from workspace_schema to core schema. I think there is a command to run: upgrade:1-1:migrate-api-keys-webhooks-to-core. @nitin can you look at this please? @nitin does the rest api endpoints to create apiKeys or webhooks have been migrated? looks there is an issue there. @Blessing for now I think you need to create your webhooks using the endpoints, then run the upgrade command, then it should work
Blessing
BlessingOP5mo ago
Is this the command: docker compose exec -it server npx nx upgrade:1-1:migrate-api-keys-webhooks-to-core ?
martmull
martmull5mo ago
yarn command:prod upgrade:1-1:migrate-api-keys-webhooks-to-core
nitin
nitin5mo ago
checking!
Blessing
BlessingOP5mo ago
Ran the migration script. the webhooks were copied to the core schema and they worked. However, new webhooks (created via the api) only appear in the workspace schema.
martmull
martmull5mo ago
Ok, perfect
nitin
nitin5mo ago
will be fixing them! thankyou for the report!!!
Blessing
BlessingOP5mo ago
Awesome. Thanks for making the debugging so easy!
martmull
martmull5mo ago
Yes, we did not update the REST API endpoints so that they create webhooks in the core schema. So they still create webhooks in the workspace schema. A fix is in progress
Blessing
BlessingOP5mo ago
I think I saw a fix for this in the recent commits. Is there a date for the next version release?
Prastoin
Prastoin5mo ago
Hello, we're currently doing the 1.2.0 release Should be good by the end of the day for both cloud and dockerHub ( PARIS TZ )
Blessing
BlessingOP5mo ago
Sweet! Thank you.

Did you find this page helpful?