<?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: Receiving 401 Error after switching to Private App in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/754221#M61310</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/518256"&gt;@DStandfast&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Let's see if the community has any experience here — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92197"&gt;@albertsg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;, do&amp;nbsp;you have any insight or tips you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/518256"&gt;@DStandfast&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 17:35:23 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-02-09T17:35:23Z</dc:date>
    <item>
      <title>Receiving 401 Error after switching to Private App</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/753519#M61256</link>
      <description>&lt;P&gt;Hello, my team is working on migrating our system's Hubspot access from the API to Private Apps(we were given an extension for the migration). We use the hubspot-php composer package along with the rossjcooper/laravel-hubspot package to interface with our Laravel based application. These had to be updated to the latest versions and the old key changed to the token in order to switch to the Private App. With just those changes I was able to get the new Private App connection working seamlessly in the development environment on my local machine, as well as in a Postman request. However when the changes were pushed to our Staging server with the same settings and token, the request comes back with a 401 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error message I was able to get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;POST &lt;A href="https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/dstandfast@bgprod.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/*******@ex.com&lt;/A&gt;` resulted in a `401 Unauthorized` response:&lt;BR /&gt;{"status":"error","message":"Any of the listed authentication credentials are missing","correlationId":"ceae92cc-f8b9-4f (truncated...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really not finding anything that should be different on our server that would cause this error. Does anyone have recommendations on directions to troubleshoot in?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:30:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/753519#M61256</guid>
      <dc:creator>DStandfast</dc:creator>
      <dc:date>2023-02-08T17:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving 401 Error after switching to Private App</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/754221#M61310</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/518256"&gt;@DStandfast&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Let's see if the community has any experience here — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92197"&gt;@albertsg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;, do&amp;nbsp;you have any insight or tips you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/518256"&gt;@DStandfast&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 17:35:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/754221#M61310</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-02-09T17:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving 401 Error after switching to Private App</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/754964#M61361</link>
      <description>&lt;P&gt;The problem is solved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, mostly...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Strangely enough we were able to get the Private Apps service working fine on our production server when we implemented it, which was the real goal. So it seems like the staging server simply had a bad authorization key somewhere. It was definitely not the token, so it must have been something else. If anyone else has the same issue the best advice I can give is probably just to check into any other authorization keys used by the HTTPS request.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 22:26:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Receiving-401-Error-after-switching-to-Private-App/m-p/754964#M61361</guid>
      <dc:creator>DStandfast</dc:creator>
      <dc:date>2023-02-10T22:26:33Z</dc:date>
    </item>
  </channel>
</rss>

