<?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: Deal Association v4 endpoint internal error in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/723301#M59068</link>
    <description>&lt;P&gt;Omg! Yep, same thing, documentation and hubspot nodejs library both use v3 definition (and no payload) with v4 endpoint...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Nov 2022 15:47:19 GMT</pubDate>
    <dc:creator>OsvaldoJ</dc:creator>
    <dc:date>2022-11-26T15:47:19Z</dc:date>
    <item>
      <title>Deal Association v4 endpoint internal error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/720760#M58874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to associate a deal-to-contact using a basic http requests and it keeps failing with an internal error, status code 500.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -i -X PUT -H 'Authorization: Bearer _TOKEN_' &lt;A href="https://api.hubapi.com/crm/v4/objects/deals/11015101525/associations/contacts/34393001" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v4/objects/deals/11015101525/associations/contacts/34393001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;HTTP/2 500&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;date&lt;/STRONG&gt;: Sun, 20 Nov 2022 15:34:18 GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;content-type&lt;/STRONG&gt;: application/json;charset=utf-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;content-length&lt;/STRONG&gt;: 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;cf-ray&lt;/STRONG&gt;: 76d23fb8ed9608bc-EZE&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;strict-transport-security&lt;/STRONG&gt;: max-age=31536000; includeSubDomains; preload&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;vary&lt;/STRONG&gt;: origin&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;cf-cache-status&lt;/STRONG&gt;: DYNAMIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;access-control-allow-credentials&lt;/STRONG&gt;: false&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-correlation-id&lt;/STRONG&gt;: 95b64cea-2e05-412a-9357-9c21eff3e0c8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-daily&lt;/STRONG&gt;: 1000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-daily-remaining&lt;/STRONG&gt;: 974635&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-interval-milliseconds&lt;/STRONG&gt;: 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-max&lt;/STRONG&gt;: 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-remaining&lt;/STRONG&gt;: 199&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-secondly&lt;/STRONG&gt;: 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-hubspot-ratelimit-secondly-remaining&lt;/STRONG&gt;: 19&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;x-trace&lt;/STRONG&gt;: 2BBB79E9686A81AB1565425B2E0867BF1E1A587DF9000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;report-to&lt;/STRONG&gt;: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=Lv%2BGN6E4wSyk5%2BLb0ojKf8mjeS%2FLpY7PHOLVMhLrvFJ6Iccy2DfzpV7ykSYXwtdO4UHNay5AOsFmfmozEXOe%2F%2BMDifKlGUtVLRAlCjX5W3QtWIFYoWmYzgbRTFwQkD%2FI"}],"group":"cf-nel","max_age":604800}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;nel&lt;/STRONG&gt;: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;server&lt;/STRONG&gt;: cloudflare&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;alt-svc&lt;/STRONG&gt;: h3=":443"; ma=86400, h3-29=":443"; ma=86400&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 19:05:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/720760#M58874</guid>
      <dc:creator>OsvaldoJ</dc:creator>
      <dc:date>2022-11-21T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deal Association v4 endpoint internal error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/720812#M58878</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/479910"&gt;@OsvaldoJ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your payload look like? &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;In the docs&lt;/A&gt;, there is a small payload associated with that request.&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="tominal_0-1668993598408.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/79552iA7BDA134CBEB513D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tominal_0-1668993598408.png" alt="tominal_0-1668993598408.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 01:20:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/720812#M58878</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-11-21T01:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deal Association v4 endpoint internal error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/721125#M58917</link>
      <description>&lt;P&gt;Ohhh...&lt;/P&gt;&lt;P&gt;Going through the docs, from the&amp;nbsp;&lt;STRONG&gt;deals&lt;/STRONG&gt; page, the endpoint for association seems to refer to v3 even tho it says v4 and there's no reference whatsoever about a payload.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/deals" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/deals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying it, if it works i'll come back and mark it as the solution.&lt;/P&gt;&lt;P&gt;Btw, the error should still be a 400 bad request, not a 500 internal error ...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:56:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/721125#M58917</guid>
      <dc:creator>OsvaldoJ</dc:creator>
      <dc:date>2022-11-21T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deal Association v4 endpoint internal error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/723300#M59067</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/api-client@8 upgraded to v4 which breaks the API...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/HubSpot/hubspot-api-nodejs/blob/b351607de0c863aa9bc85bf8549fc15eaa73809a/codegen/crm/deals/apis/AssociationsApi.ts#L122" target="_blank"&gt;https://github.com/HubSpot/hubspot-api-nodejs/blob/b351607de0c863aa9bc85bf8549fc15eaa73809a/codegen/crm/deals/apis/AssociationsApi.ts#L122&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 15:42:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/723300#M59067</guid>
      <dc:creator>VJin</dc:creator>
      <dc:date>2022-11-26T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deal Association v4 endpoint internal error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/723301#M59068</link>
      <description>&lt;P&gt;Omg! Yep, same thing, documentation and hubspot nodejs library both use v3 definition (and no payload) with v4 endpoint...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 15:47:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-Association-v4-endpoint-internal-error/m-p/723301#M59068</guid>
      <dc:creator>OsvaldoJ</dc:creator>
      <dc:date>2022-11-26T15:47:19Z</dc:date>
    </item>
  </channel>
</rss>

