<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Webhooks test - 400 error in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011233#M75073</link>
    <description>&lt;P&gt;Howeve maybe I spoke to soon. The 'testing' of the webhook works fine now. However, when I created a contact and the webhook triggered, I actually still receive the 400/bad request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the Postman request and response below. For now, my API is just echoing the request back in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="postman.png" style="width: 868px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122542i3FDC04228CC15518/image-size/large?v=v2&amp;amp;px=999" role="button" title="postman.png" alt="postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 11:40:19 GMT</pubDate>
    <dc:creator>BigDawg5508</dc:creator>
    <dc:date>2024-07-17T11:40:19Z</dc:date>
    <item>
      <title>Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010054#M75018</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a webhook subscription, seemingly meeting any and all pre-requisite requirements. This subscription is for the contacts.created event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've provisioned the URL, as well as the POST endpoint (HTTPS) and accepting the expected JSON payload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when testing the API from within Hubspot, I only receive a 400 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:41:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010054#M75018</guid>
      <dc:creator>BigDawg5508</dc:creator>
      <dc:date>2024-07-15T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010800#M75050</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/793731"&gt;@BigDawg5508&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Is this webhook set up using a Private App or using a Public App? Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293284"&gt;@dsmarion&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192045"&gt;@PBaxter&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;&lt;/SPAN&gt;, do you have any webhook setup troubleshooting tips you can share with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/793731"&gt;@BigDawg5508&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 16:45:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010800#M75050</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-07-16T16:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010832#M75051</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/793731"&gt;@BigDawg5508&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do not have enough information here, and it would be great to have more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;A 400 error occurs when a browser sends a request to a web server that the server cannot understand or process correctly. So, check what type of data your API expects—webhooks send an array of objects but not an object (this is a pretty common mistake)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_0-1721150197827.png" style="width: 760px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122493iF1BBD5C8AF7A511A/image-dimensions/760x192?v=v2" width="760" height="192" role="button" title="02974_0-1721150197827.png" alt="02974_0-1721150197827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:17:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1010832#M75051</guid>
      <dc:creator>AddaxLab</dc:creator>
      <dc:date>2024-07-16T17:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011212#M75071</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;, thank you so much for your reply. It is a private app, and I have to do a small walk of shame, because I did identify the issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I created my object for deserialization from the JSON payload sent from the Hubspot webhook, 'apparently' I created the 'objectId' field as a string vs. a number &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I changed the type to a number (as shown in the webhooks docs/screenshot) all was good in the world again. Total rookie move and my apologies for taking up your time for an error on my behalf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schema.png" style="width: 470px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122537iEFAE3DB642556F65/image-size/large?v=v2&amp;amp;px=999" role="button" title="schema.png" alt="schema.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:59:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011212#M75071</guid>
      <dc:creator>BigDawg5508</dc:creator>
      <dc:date>2024-07-17T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011213#M75072</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/783441"&gt;@AddaxLab&lt;/a&gt;&amp;nbsp;, so definitely 10-4 on the 400, and yes, I may have said 'object' in my original post but my API is in fact setup to receive a JSON array. However, a rookie movie on my part that I happened to notice yesterday. 'Apparently' when I created my object that the Hubspot payload would be deserialized to, in error I created the 'objectId' field as a string vs a number lol. So, when it tried to deserialize it, it was failing and a 400 in this case definitely makes sense. So, another case of a dev just going to quickly and making a rookie mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't thank you enough for reaching out to assist!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 11:05:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011213#M75072</guid>
      <dc:creator>BigDawg5508</dc:creator>
      <dc:date>2024-07-17T11:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011233#M75073</link>
      <description>&lt;P&gt;Howeve maybe I spoke to soon. The 'testing' of the webhook works fine now. However, when I created a contact and the webhook triggered, I actually still receive the 400/bad request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the Postman request and response below. For now, my API is just echoing the request back in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="postman.png" style="width: 868px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122542i3FDC04228CC15518/image-size/large?v=v2&amp;amp;px=999" role="button" title="postman.png" alt="postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 11:40:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011233#M75073</guid>
      <dc:creator>BigDawg5508</dc:creator>
      <dc:date>2024-07-17T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011235#M75074</link>
      <description>&lt;P&gt;Howeve maybe I spoke to soon. The 'testing' of the webhook works fine now. However, when I created a contact and the webhook triggered, I actually still receive the 400/bad request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the Postman request and response below. For now, my API is just echoing the request back in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="postman.png" style="width: 868px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122543i58F8C0B6381EA0D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="postman.png" alt="postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 11:40:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011235#M75074</guid>
      <dc:creator>BigDawg5508</dc:creator>
      <dc:date>2024-07-17T11:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks test - 400 error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011590#M75089</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/793731"&gt;@BigDawg5508&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for taking the time to come back and let us know how you solved the issue. I definitely learn from my mistakes and my victories &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 19:27:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhooks-test-400-error/m-p/1011590#M75089</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-07-17T19:27:57Z</dc:date>
    </item>
  </channel>
</rss>

