Hi all,
I created a simple Express app running on my local network with functioning API endpoints that I’ve tested with multiple other tools. For some reason, when I try to connect my webhook to this app, I receive the “Failed to communicate with the URL provided” error and I cannot figure out why.
I’ve constructed my http POST exactly as it is shown on the Webhook integration support article, but this has not helped.
Here is the code for my express app (as I’ve mentioned, these endpoints work just fine with everything else):
const express = require('express');
const app = express();
const port = 2020;
app.get('/', (req, res) => {
res.send("success");
})
app.post('/', (req, res) => {
console.log(JSON.stringify(req.body, 0, 2));
res.status(200).send(req.body);
})
app.listen(port, () => {
console.log(`App listening on port ${port}`)
})