makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
29.55k stars 1.63k forks source link

[bug]: Can*t create webhook for local #4313

Open MBeggiato opened 5 months ago

MBeggiato commented 5 months ago

Is there an existing issue for this?

Current behavior

When I try to add a new webhook, I get the following error:

grafik

The webhook I try to use comes form n8n. When using curl from the host of my plane instance, it is working:

root@plane:~/plane-selfhost# curl https://[url]/webhook-test/300e18c7-3fb5-4ed0-9abb-f746634e79e5 {"message":"Workflow was started"} root@plane:~/plane-selfhost#

In the API logs I can see the following when trying to add the webhook from inside plane: api-1 | WARNING 2024-04-29 14:42:03,955 log 25 140250880707384 Bad Request: /api/workspaces/todo/webhooks/ api-1 | 172.20.0.11:60544 - "POST /api/workspaces/todo/webhooks/ HTTP/1.0" 400

Can someone tell me where I can find more details?

Steps to reproduce

  1. Go to the workspace settings
  2. Select Webhooks
  3. Click "Add webhook"
  4. Paste webhook url I get from n8n.

Environment

Production

Browser

None

Variant

Self-hosted

Version

v0.18.0

Royalsspirit commented 4 months ago

I have the same issue on 0.20-dev with a private n8n domain. It seems that private IPs are not allowed to be used as webhook url see Someone can confirm ?

pablohashescobar commented 3 months ago

@Royalsspirit, @MBeggiato private IPs are not allowed while creating webhook.

Royalsspirit commented 3 months ago

Hello @pablohashescobar, thank you for your reply. Is the private IP still a private even in a private network ? It's quite weird to say it like that i know :p

I'm in a case where my Plane instance is in private network such as the n8n tool. Each apps should be able to communicate each others no ? Plane should resolve the n8n domain isn't ?