Webhook for OAuth account not working

SOLVE
bwor80
Member

Here is what I have:

 

App ID: 207187

Hub ID using the test app:  6768699

 

I have succesfully added this app with OAuth and it shows as installed.  I have a webhook subscription setup for contact creation.  For now, I wanted the webhook to fire and deliver the payload to my end point and I would just dump out the data.  However, it does not appear to be sending anything to the app when I create a new contact.

 

My code for the app is pretty barebones on the call:

 

//WEBHOOK for contact creation
app.post('/contact', async (req, res) => {
console.log('contact request data');
console.log(req.data);
res.status(204).send();
});
Not sure why this is not dumping the payload to the console.  Any ideas why the webhook would not be sending data?
 
 
 
 
0 Upvotes
1 Accepted solution

Accepted Solutions
jackcoldrick
Solution
HubSpot Employee

Hi @bwor80 ,

I've just taken a look at your app configuration within your developer portal. It looks as though the webhook is currently paused. As a result it will not trigger when a contact is created. If you activate and try again it should be fine. See below:

 

2019-11-27_1508.png

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn

View solution in original post

3 Replies 3
jackcoldrick
Solution
HubSpot Employee

Hi @bwor80 ,

I've just taken a look at your app configuration within your developer portal. It looks as though the webhook is currently paused. As a result it will not trigger when a contact is created. If you activate and try again it should be fine. See below:

 

2019-11-27_1508.png

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn

View solution in original post

bwor80
Member

@jackcoldrick 

 

Thanks for the response!  Based on this, are webhooks always started in a paused state? 

 

 

0 Upvotes
jackcoldrick
HubSpot Employee

Hi @bwor80 ,

 

No problem at all. Yes that is correct. This is documented here.

NOTE: New subscriptions are created in the paused state. 
You will need to activate the subscription for webhooks to send.

Regards,

Jack

 

 

 

 

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn
0 Upvotes