APIs & Integrations

bwor80
Mitglied

Webhook for OAuth account not working

lösung

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 Akzeptierte Lösung
jackcoldrick
Lösung
HubSpot Employee
HubSpot Employee

Webhook for OAuth account not working

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten
jackcoldrick
Lösung
HubSpot Employee
HubSpot Employee

Webhook for OAuth account not working

lösung

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
bwor80
Mitglied

Webhook for OAuth account not working

lösung

@jackcoldrick 

 

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

 

 

0 Upvotes
jackcoldrick
HubSpot Employee
HubSpot Employee

Webhook for OAuth account not working

lösung

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