Description
I’m suffering with an outgoing webhook that should trigger a workflow in activepieces.
Rocket is running in docker on a cloud Server.
What works:
Webhook fires in Test-Mode (ap-URL/test ) and test is registered in AP
Regular ap-URL (without /test) recognizes the trigger when the URL is called via CURL from within the docker-container
Rocket-Log shows the that regular webhook fires (prepare_outgoing_request)
BUT
The ap-worklow ist not triggered, so it seems rocket.chat is not sending the request.
I have no more any idea what else to check…
Server Setup Information
- Version of Rocket.Chat Server:
- Operating System: Linux
- Deployment Method:
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy:
- Firewalls involved:
Any additional Information
Script:
class Script {
prepare_outgoing_request({ request, url }) {
const payload = {
token: request.token || “TOKEN”,
bot: request.bot || false,
channel_id: request.channel_id || “CHANNEL”,
channel_name: request.channel_name || “channel”,
message_id: request.message_id || “MSG123”,
timestamp: request.timestamp || new Date().toISOString(),
user_id: request.user_id || “USER123”,
user_name: request.user_name || “user”,
text: request.text || “”,
siteUrl: request.siteUrl || {LINK…}s…
};
console.log(‘Sending payload:’, JSON.stringify(payload));
return {
url: url,
method: “POST”,
headers: { “Content-Type”: “application/json” },
data: payload
};
}
}
Logs