And on Nov. 20th, it looks like it stopped creating deals. I'm not getting an error message. I didn't change my code (it's PHP/cURL). Did something change on that date?
Hi @Chadr, unfortunately there isn't much more I can do to help troubleshoot your issue as this is a cert issue on your side and the endpoint isn't malfunctioning. I was able to connect to api.hubapi.com on port 443 using telnet on my own machine:
I've seen this tool used to diagnose issues in the past: https://www.ssllabs.com/ssltest/analyze.html but don't know enough about SSL certifications to know if this is something that might help you out here.
I get a 200 response back from the request. I confirmed with my team the endpoint did not change recently. Do you have your Content-Type header set to application/json? What does your PHP/cURL code look like?
So the cURL error I'm getting is "Failed to connect to api.hubapi.com port 443: Connection refused"
This is starting to make sense. The timing is the same as when we had a new SSL certificate installed on this server. The same thing happened when I turned on SSL in HubSpot a couple months ago. That resolved itself in a few days, though. This hasn't.
It does seem to be affecting other API integrations. Any ideas on how to fix?
Hey @Chadr, are you in a filtered view in HubSpot? I can see 4 instances of a deal with the same name as above: http://prntscr.com/lripaj
If the calls to the endpoint works in Postman, then it should work with PHP/cURL. It's likely something wrong with the implementation, though I don't know of a reason it would stop working suddenly. Perhaps it's a connection issue. I was able to make a POST with the json above to a different hubspot owner ID in my own portal and was successful. Deal owners internal IDs can be found here: https://app.hubspot.com/property-settings/152131/deal/hubspot_owner_id
Those are all different deals (long story short, I'm making a call to get the company name that is also stopped working. But wanted to fix this first because I'm guessing they're related).
Here's the other oddity - I'm using other API endpoints on the same server that work. It seems to only be the ones that are deal-related that don't.
Just in looking at that and the documentation, it looks like that portalId might be the issue? I don't see that in the JSON of the documentation. It's been there for at least a year, though, and worked until Nov 20.
Nope, that wasn't it. The only other thing I can think is it's the hubspot_owner_id. That seems to be a contact owner, and this is a deal. And I believe that has changed recently?