Webhooks not sent in local setup
I tried setting webhooks in Settings to be sent to https://webhook.site to check @Skyfox675's problem with duplicated webhooks but upon setting them, no webhook was sent to specific address. From what I know, there's no need to set any kind of authorization as they're basically a callbacks. What am I setting wrong?
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
41 Replies
@ɃØĦɆᵾS do you have your worker running?
The app itself is running fine if that's what you mean by worker, I set the URL in UI, not in .env in twenty-server
no I mean that for webhooks to work you shoud also run:
- npx nx run twenty-server:worker
in parallel with:
- npx nx run twenty-server:start
the worker is handling all async jobs (including webhooks!)
Oh, no, it's not running, I'll check it and brb
cool, that should be it!
I have running
npx nx start
in one terminal and run npx nx run twenty-server:worker
in another but worker exits with no problems, I guess this shouldn't happen if it's supposed to be running in parallel
Also tried running npx nx run twenty-server:start
npx nx run twenty-front:start
and npx nx run twenty-server:worker
in separate terminals but again, worker exits after ~15 secoh, are you running out of memory on your machine?
Right now it's a nightmare: the front takes 6GB, the server 1.7GB and the worker 1.7GB too, I'm on a mission this week-end to get it back to some normal level and identify the issue
npx nx run twenty-server:worker should stay up and running like npx nx run twenty-server:start is
can you try to run
npx nx run twenty-front:start
in a terminal and npx nx run twenty-server:worker
in another one
You'll miss the server but it will confirm if you don't have enough memory for the 3 running togetherNo, I have way more memory than normal user needs 😄
okay!
could you share a screen of your npx nx run twenty-server:worker terminal?
Sure, I can
But what's weirder for me is a fact that I turned off server, run worker in different terminal and it "Successfully ran target"
weird, could you share your screens?
it should look like this
Meanwhile I'm testing webhooks on demo and found another bug 😆
there is something wrong, your worker is triggering your server
have you touched your configuration ?
are you on main branch?