Back

webhook use IP

  • 0
  • Self Hosted
  • Webhooks
Kuromory
18 Apr, 2024, 07:29

Hey is it possible to use webhook in a local network? I just have the IP of the webhook server but Appwrite asks for a public domain...

TL;DR
Developers are experiencing trouble using IP addresses for webhooks in Appwrite instead of public domains. They are encountering errors when trying to use IPs, despite being told it should work fine. The developers suspect this may be a bug and have been advised to open an Issue on GitHub to address the problem. The developers are questioning whether they can use a webhook on a local network with just an IP address instead of a public domain. It has been confirmed that there should not be an issue with using an IP address for the webhook.
ideclon
18 Apr, 2024, 07:31

Yes, there should be no issue with using an IP address as the domain for a webhook.

Kuromory
18 Apr, 2024, 07:34

but why does it not let me...

Kuromory
18 Apr, 2024, 07:35

would it be a problem when it runs on the same server appwrites is on?

ideclon
18 Apr, 2024, 07:39

Ooh, looks like Appwrite won’t let you - pretty sure that a bug. Could you please open an Issue on GitHub?

ideclon
18 Apr, 2024, 07:40

Shouldn’t be - unless it’s another Docker container, in which you might need to figure out the networking

Kuromory
18 Apr, 2024, 07:46

okey it is just on the server so it should be fine

Kuromory
18 Apr, 2024, 07:46

did it and I get following error btw: appwrite | [Error] Timestamp: 2024-04-18T07:43:23+00:00 appwrite | [Error] Method: POST appwrite | [Error] URL: /v1/projects/:projectId/webhooks appwrite | [Error] Type: Utopia\Exception appwrite | [Error] Message: Invalid url param: 1. Value must be a valid URL with following schemes (http, https) appwrite | 2. Value must be a public domain appwrite | appwrite | [Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php appwrite | [Error] Line: 774

ideclon
18 Apr, 2024, 07:48

Yes, I tried and got the same error. As I said, I’m pretty sure that’s not intentional - could you please open an Issue on GitHub?

Kuromory
18 Apr, 2024, 07:48

already did 👍

ideclon
18 Apr, 2024, 07:49

Great

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more