Java Api 403 Forbidden




My hubspot integration has stopped working since last week (Feb 22) but restarted this morning.
The integraton run under a java application (jvm 1.5), and I am getting the following log.

2018-02-26 08:12:51,800 GMT ERROR |ajp-| {64257423-} Error during hubspot request Server returned HTTP response code: 403 for URL:***&numemployees=tpe&role=student_intern&email=*****&license_plan=TRIAL+&company=student&hs_context=%7B%22hutk%22%3A%22null%22%2C%22ipAddress%3A%2280.215.117.124%22%2C%22pageUrl%22%3A%22%2Fpz%22%2C%22redirectionUrl%22%3A%22%22%7D&

The error only occurs on production server. It works fine with curl on my dev server.

curl -i
-H "Content-type: application/x-www-form-urlencoded"
-H "Content-Language: en-Us"
-d 'phone=*****
-d 'lastname='
-d 'ancien_role=ENTERPRISE'
-d 'planzone_status=1'
-d 'firstname=
-d 'numemployees=tpe'
-d 'role=student_intern'
-d 'email=
-d 'license_plan=TRIAL+'
-d 'company=student'
-d 'hs_context=%7B%22hutk%22%3A%22null%22%2C%22ipAddress%3A%2280.215.117.124%22%2C%22pageUrl%22%3A%22%2Fpz%22%2C%22redirectionUrl%22%3A%22%22%7D'

I have on another thread that I could be blocked by Hubspot anti-abuse.
Is that the case for me ?


Hi @7_Planzone,

It's possible that you're seeing a similar issue, but I can't yet say for sure. Do you have the full 403 response you're seeing?


Thanks Dereck,
But unfortunately I don't have the response content. The java application didn't handle very the exception. I'll fix that and post the response content the next time I'll get the exception.


Hi @7_Planzone,

Sounds good; go ahead and post in this thread when you can log the full error and I'll help dig into the issue further.