^ This POST method actually fetches the deal information and associated contact information from through the payload->objectId and saves the fetched information into my DB table..
Here's the test response; I get:
{ "statusCode": 500 }
You may also check this screenshot: webhook test
Following is my ssl certificate info screenshot:
UPDATED:
Moreover; According to this solution by @bkucenski I also have changed the SSL certificate from wildcard to single site SSL but still it doesn't work for me i.e., returning the same 500 error.
P.S. Here's the single site SSL info:
I 'd like this be working as soon as possible, could anyone please help me fix this issue.
Sorry for the spam/abuse trouble. I've found that this platform tends to flag posts with either large or many code blocks and/or multiple screenshots, even if they're not malicious. It looks like one of my colleagues restored your posts, so we can continue speaking here.
I'm glad to see that you got the tests to work in Postman!
In order for your application to detect dealstage property changes and send your webhook URL a notification, your app must be connected to your developer test account. I can see that your app with an ID ending in 0930 is not connected to any HubSpot account at this time.
You can connect your app to an account through this OAuth flow.
Let's move the conversation into this new thread. Here's how I responded to your other post earlier today:
I'm sorry to hear that you're encountering these 500errors, even after trying the recommendations above.
I haven't diagnosed the cause yet, but could you help me by answering a few clarifying questions?
Are you able to successfully POST the sample data through a REST client like Postman?
Per the original poster's comment, does the same webhook URL work in a workflow webhook action? You should have access to workflows in your developer test account ending in 9821.
Thanks for the response. I'll wait for your update on this issue.
Also I want to know; will I be need a paid version of hubspot to get the webhooks work through hubspot developer portal application?
Currently our business needs doesn't require any of the paid features so just for this single feature i.e., webhooks to trigger; I don't think we can upgrade to enterprise paid plan.
FYI. Since - webhooks under workflow action requires enterprise plan. which is a huge amount in its own.
Also, if it is possible to use webhooks for free then what will be the limitations etc?
Would really appreciate if you could give your thoughts on this ^?
To reiterate, you can subscribe to changes with the Webhooks API in any account, but you need an Enterprise-level subscription to send outgoing POST requests through workflows.
There is a 404Deal does not exist message from HubSpot inside the message property of your service's 500 response.
As you said in your original post:
"This POST method actually fetches the deal information and associated contact information from through the payload->objectId and saves the fetched information into my DB table."
When you test the webhook, your code makes a GET request to the Deals API for a deal with the "objectId": 123 before it returns a response to HubSpot's POST request. The problem is that deal ID 123 is fake — no deal in any HubSpot account has that ID. So, the deals endpoint returns the 404Deal does not exist error and your code returns a 500 error with HubSpot's response to your GET request as the message.
The root of the issue is that your code is trying to look up dummy data for "objectId": 123. Try substituting the ID of a real deal in your test account.
Yes - I've tested Postman with actual Testing dealId and it gives success 200 response as shown in the screenshot below:
Also; I have created some dummy deals in my Hubspot Testing account having Deal IDs as below (i.e., marked as BOLD):
1046280606 (Test Deal 1)
1046986853 (Test Deal 2)
1047019119 (Test deal3)
1047138608 (Test Fariha)
Since it now works with Postman and everything seems to be good. But still it doesn't seems to work with APP webhook subscription.
FYI. I've disabled my webhook workflow action in Testing account and Just have webhook subscription created in the APP as shown below:
As it seems the webhook subscription will trigger whenever Deal's dealstage property changes.
Right now, I have the Testing account API KEY enabled on my server to communicate with hubspot. I don't know why it still not working when I create deals and change dealstage.
Could you please give your thoughts on this,
Thanks for your consistent co-operation and support.
Sorry for the spam/abuse trouble. I've found that this platform tends to flag posts with either large or many code blocks and/or multiple screenshots, even if they're not malicious. It looks like one of my colleagues restored your posts, so we can continue speaking here.
I'm glad to see that you got the tests to work in Postman!
In order for your application to detect dealstage property changes and send your webhook URL a notification, your app must be connected to your developer test account. I can see that your app with an ID ending in 0930 is not connected to any HubSpot account at this time.
You can connect your app to an account through this OAuth flow.
Yes that sample deal is 123 is fake. I have created some deals in my testing account having deal IDs are below:
1046280606 (Deal name: Test deal 1)
1046986853 (Deal name: Test deal 2)
1047019119 (Deal name: Test deal 3)
1047138608 (Deal name: Test Fariha)
Also, here's the working Postman below (i.e., showing 200 success response):
So, I have disabled the workflow trigger action in my testing account AND have create a subscription in the developer APP. But when I change deal property it actually doesn't seems to trigger my webhook. I don't know whats the issue but am unable to find why and how the webhook trigger will work?
FYI: I have testing account API_KEY enabled on my server right now, when it will work then I'll switch it to real account API KEY.
Moreover; Here're the screenshots of my webhook configs & setting etc.
Please give your thoughts.
Thanks for your consistent co-operation and support.