# Post requests to hubspot return HTTP 400 error

**URL:** <https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [October 6, 2021, 1:29pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169 "2021-10-06T13:29:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![radu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radu/32/412_2.png) [@radu](https://forum.mautic.org/u/radu)\
**Post date:** [October 6, 2021, 1:29pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/1 "2021-10-06T13:29:25Z")

</div>

**Your software**  
My Mautic version is: 4.0.1  
My PHP version is: 7.4.24  
My Database type and version is:  
|Version|5.7.35|  
|Doctrine driver|pdo\_mysql|  
|Doctrine database platform (automatically detected)|Doctrine\DBAL\Platforms\MySQL57Platform|

**Your problem**  
My problem is:

 ![Screenshot 2021-10-06 at 15.51.27](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2345a002ec871a7285f3e364935a0c32ce2bd9aa.jpeg)

In the mautic-hubspot integration, the post requests do not go through in hubpot and this error pops up.

Can anyone help solve this HTTP400 error ?

Thank you.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 8, 2021, 3:01pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/2 "2021-10-08T15:01:26Z")

</div>

Thanks for writing this up, could you clarify if this started happening with the 4.0.1 update or if you have just started getting this set up?

---

<div class="post-metadata">

**Author:** ![radu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radu/32/412_2.png) [@radu](https://forum.mautic.org/u/radu)\
**Post date:** [October 8, 2021, 3:13pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/3 "2021-10-08T15:13:31Z")

</div>

Hi, thanks for you reply. I did not test it with prior version. Just installed 4.0.0 and then automatically updated to 4.0.1.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 8, 2021, 3:21pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/4 "2021-10-08T15:21:30Z")

</div>

OK great - I’ll have a look and see if I can confirm the issue later today.

---

<div class="post-metadata">

**Author:** ![radu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radu/32/412_2.png) [@radu](https://forum.mautic.org/u/radu)\
**Post date:** [October 8, 2021, 3:53pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/5 "2021-10-08T15:53:33Z")

</div>

Cool. To reproduce this, just add a push to integration (hubspot) action in a campaign after connecting the plugin. The second way to reproduce is to create a landing page with a form that asks for name and email. Then add a push to integration action.

Both scenarios get the same error in hubspot.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 8, 2021, 4:11pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/6 "2021-10-08T16:11:46Z")

</div>

OK great, looking into it now! 🙂

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 8, 2021, 4:38pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/7 "2021-10-08T16:38:54Z")

</div>

@radu how did you get around the Guzzle error when triggering the command? Just raised a bug about that issue.

---

<div class="post-metadata">

**Author:** ![radu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radu/32/412_2.png) [@radu](https://forum.mautic.org/u/radu)\
**Post date:** [October 8, 2021, 5:08pm UTC](https://forum.mautic.org/t/post-requests-to-hubspot-return-http-400-error/21169/8 "2021-10-08T17:08:27Z")

</div>

@silavapi unfortunately I didn’t get around it. It’s still there.
