Setting up Webhook

Hi there,

I’m having trouble setting up a webhook.

I set it up in the backend workflows, grab the link that comes with detecting data that contains “Version-test” and “initialize” - This works when setting up the webhook but only in dev.

When I move it to live the webhook no longer works, and in the application I’m using to send the webhook I am unable to remove “version-test” and “initialize” without getting an error.

I am using pabbly subscription billing.

Does anyone have any ideas what I might be doing wrong.

Many thanks in advance,
Johnny

You need to remove version-test and initialize when calling the live version.

Essentially, your dev environment is https://domain/version-test/index and your live will be
https://domain/index

1 Like

Just change

https://domain.com/version-test/api/1.1/wf/workflowname/initialize

with

https://domain.com/api/1.1/wf/workflowname

Hi,

Thank you for the fast responses. When I do remove that I get an error in pabbly that states “Webhook URL failed with response code 400 and response text Bad Request.” - maybe its a problem on their side?

Many thanks for your help,
Johnny

Many things can be wrong here. Seems like you haven’t properly written the URL

  • Is your workflow is exposed publicly?
  • Does it require authentication to be run?
  • Whats the name of the workflow?
  • What have you written after /wf/ ?

Just to confirm since you said it is working in your Development environment. Did you deploy first before testing the Live environment.

1 Like

Hi,

Thanks for the responses.

Yeah so its difficult to explain for a noob like me.

So when initially set up the webhook in both bubble and Pabbly (What’s sending it) I do detect data in Bubble and then Save on the webhook page in Pabbly. Bubble then detects some data, but it seems this data is only to do with the saving of the webhook. See below:

So then I have to go in and manually make the event I want to happen in Pabbly happen and detect data again, then the I get the correct data with all the event information.

I then deploy to live in Bubble. But then I need to change the URL in Pabbly to the live version, and without initialize. So I go to do that but when I press save again in Pabbly I think its firing that initial test data so it doesn’t match maybe? and I get the error below which according to google means “A 400 error message usually means that the request was malformed . In other words, the data stream sent by the client to the server wasn’t formatted in the exact way required by the receiving service.”

The thing is I have in past managed to make it work so there must be a way to do it but I can’t figure it out. Hopefully I’m just being silly somewhere.

  • It is exposed publicly with no authentication at the moment.
  • After /wf/ is just the name of the workflow which is “Get_Pabbly_Trial_Activated”

Many thanks for your help.
Johnny

What if you do this for the LIVE environment? Do you get an error?

Hi Ademiguel,

When I do detect data in the live section it just shows me all the data types I declared in the dev side.

Its a bit of a condundrum. Could it be that might app is not fully up to date in bubble? Or does this sound like a Pabbly (The app i’m linking to) problem? Is it ever this complicated with setting up webhooks in other apps?

Many thanks,
Johnny

Hi @jwtsmithson,

As @ademiguel mentioned earlier, to call the live url endpoint you have to remove the version-test and initialize from the url.

  • For the development environment, you use the initialize to detect data.
  • Once that is complete, you update your pabbly webhook url to use the https://domain.com/version-test/api/1.1/wf/workflowname without initialize for the development environment. Test again.
  • Finally, if everything is working you then deploy to live and update pabbly webhook url to use https://domain.com/api/1.1/wf/workflowname/.
1 Like