I created a webhook in a pipe in order for it to export data to a Google Cloud Function that will, in turn, send it to a Google Cloud Pub/Sub topic.
The Cloud function is all set up and tested, surely working when I do a POST request using curl with the same token.
I set up the webhook using https://app.pipefy.com/graphiql with the following piece of code:
mutation{
createWebhook(input:{
actions:"card.move"
name:"Webhook-Test"
url:"https://MY_CLOUD_FUNCTION_URL"
email:"MY_EMAIL@MY_COMPANY.com"
pipe_id:302214108
headers: ""{\"Authorization\":\"Bearer MY_VERY_LONG_TOKEN\"}]"
})
{
clientMutationId
}
}
And it actually does create a webhook, as I could verify with the following piece of code:
{pipe(id:302214108){id webhooks{id url headers actions}}}
However, when I move some cards to test it, I don’t see any invocation in the cloud function dashboard.
Is there a way to test and monitor the webhook? Any ideas that could help solve this? I’m totally lost with this, since I’m new to a lot of concepts involved here.