AntPruve
AntPruve2w ago

401 Unauthorized Webhook between TwentyCRM and Windmill

Hey, We are using the Webhook connection between TwentyCRM and Windmill (Pro), both in self-hosted version. We tried it with different access tokens, changed token configuration, seems like the tokens are vanishing in Windmill after Saving and Reopening the Flow? The Token vanishes in the token input field but when clicking "Create a Webhook-specific Token" are still listed in the settings but not in the Authorization of the Webhook (independent of Header or Query type). Testing the trigger successfully is not possible, we only receive 401 errors in the logs and cannot see any input information on the workflow. No Results whatsoever. Are we doing something wrong? Your support is appreciated! 10.02.2025 10:40] ] [Nest] 34 - 02/10/2025, 9:29:35 AM ERROR [CallWebhookJob] Error calling webhook on targetUrl 'URL': Error: connect ECONNREFUSED ::1:80 [Nest] 34 - 02/10/2025, 9:29:35 AM ERROR [CallWebhookJob] Error calling webhook on targetUrl 'URL': AxiosError: Request failed with status code 401 [Nest] 34 - 02/10/2025, 9:35:32 AM LOG [CallWebhookJobsJob] CallWebhookJobsJob on eventName 'company.updated' triggered webhooks with ids [ "f35027ff-17c3-4641-9708-a19aadbc2f6e", "ed3f42a2-8b4d-426e-ae20-8e6532a35844" {name}, [10.02.2025 10:42] [Nest] 34 - 02/10/2025, 9:35:33 AM ERROR [CallWebhookJob] Error calling webhook on targetUrl 'URL: AxiosError: Request failed with status code 401 [Nest] 34 - 02/10/2025, 9:42:32 AM LOG [CallWebhookJobsJob] CallWebhookJobsJob on eventName 'company.created' triggered webhooks with ids [ "ed3f42a2-8b4d-426e-ae20-8e6532a35844" ]
9 Replies
AntPruve
AntPruveOP2w ago
To clarify: My goal is to get the Data Model information in TwentyCRM as an Input for Windmill to then use it for further work flows.
rubenf
rubenf2w ago
Hi @AntPruve , can you clarify:
We tried it with different access tokens, changed token configuration, seems like the tokens are vanishing in Windmill after Saving and Reopening the Flow? The Token vanishes in the token input field but when clicking "Create a Webhook-specific Token" are still listed in the settings but not in the Authorization of the Webhook (independent of Header or Query type).
We tried it with different access tokens, changed token configuration, seems like the tokens are vanishing in Windmill after Saving and Reopening the Flow? The Token vanishes in the token input field but when clicking "Create a Webhook-specific Token" are still listed in the settings but not in the Authorization of the Webhook (independent of Header or Query type).
AntPruve
AntPruveOP2w ago
Hi @rubenf , gladly. I have attached a screenshot. Every time I set up a Token in Windmill, save, and copy it to TwentyCRM it vanishes in the "Authorization" field on Windmill. I presume this is why the authentication between TwentyCRM and Windmill fails. Is there any specific info that would help you for the clarification?
No description
rubenf
rubenf2w ago
you say it "vanishes", between when and when would it does that the tokens should be displayed at the bottom in "Existing Webhook Token"
AntPruve
AntPruveOP2w ago
When I created a Token it gets added to the Header Info. However, when I close the work flow (after saving) and then return to it the Authorization info in the header "vanishes". I think this may be relevant, because the authorization generally fails and I am not able to successfully "Test Trigger". Saving and reopening gives this (see pic) under "REST" (instead of using the existing Webhook Token). My main issue is that I cannot succesfully connect to TwentyCRM but I think the above info may help to troubleshoot this issue
No description
rubenf
rubenf2w ago
the panel on the top is just to test if the token is listen below the token exist and is valid
AntPruve
AntPruveOP2w ago
Understood. However, the connection between TwentyCRM and Windmill fails (see original post with logs). Do you have any advice how to troubleshoot this?
rubenf
rubenf2w ago
I don't, but you can curl yourself to test if the flow fails or not with the expected webhook if it doesn't, I would ask twenty support
AntPruve
AntPruveOP2w ago
Thanks, I'll try and circle back if needed

Did you find this page helpful?