APIs & Integrations

Not applicable

Java Api 403 Forbidden

Hi

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-127.0.0.1-8009-5| {64257423-} Error during hubspot request
java.io.IOException: Server returned HTTP response code: 403 for URL: https://forms.hubspot.com/uploads/form/v2/2744280/652ed2e5-5592-4fce-bcb4-6abcc1db751a?phone=&lastname=&ancien_role=ENTERPRISE&planzone_status=1&firstname=***&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'
https://forms.hubspot.com/uploads/form/v2/2744280/652ed2e5-5592-4fce-bcb4-6abcc1db751a

I have on another thread https://integrate.hubspot.com/t/api-403-forbidden/7187 that I could be blocked by Hubspot anti-abuse.
Is that the case for me ?

0 Upvotes
3 Replies 3
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Java Api 403 Forbidden

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.

0 Upvotes
Not applicable

Java Api 403 Forbidden

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.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Java Api 403 Forbidden

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?

0 Upvotes