<?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 Import file async API (v3) never finishes in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/479353#M45970</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am having problems getting files&lt;FONT face="courier new,courier"&gt;/v3/files/import-from-url/async&lt;/FONT&gt; to work.&lt;BR /&gt;&lt;BR /&gt;I am trying to import a file from a URL (URL tested working from several different devices).&lt;BR /&gt;&lt;BR /&gt;I get a 202 from the request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/files/v3/files/import-from-url/async&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the following body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "id":"AAAACg4_sPM",
  "links": {
    "status":"https://api-eu1.hubspot.com/files/v3/files/download-from- 
    url/AAAACg4_sPM/status"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which leads me to believe that the request I correct and I have the necessary permissions/scopes. However, calling the status link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/files/v3/files/import-from-url/async/tasks/AAAACg4_sPM/status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for updates on the status returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "completedAt":"2021-08-13T11:34:43.870Z",
  "startedAt":"2021-08-13T11:34:13.022Z",
  "links":{
    "status":"https://api-eu1.hubspot.com/files/v3/files/download-from-url/AAAACg5WIPc/status"
  },
  "taskId":"AAAACg4_sPM",
  "status":"PROCESSING"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeated requests to the same endpoint continue to return status PROCESSING for several minutes and eventually I get the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "status": "COMPLETE",
  "numErrors": 1,
  "errors": [
    {
      "status": "error",
      "category": "INTERNAL_SERVER_ERROR",
      "message": "Error downloading file: FAILED_UPLOAD"
    }
  ],
  "startedAt": "2021-08-13T09:59:12.955Z",
  "completedAt": "2021-08-13T10:39:30.738Z",
  "taskId": "AAAACg4_sPM"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am stuck. Can anyone help with that error message or point me in the right direction, I have searched the community and internet but not found anyone with a similar problem.&lt;BR /&gt;&lt;BR /&gt;Can I get more information about the error from HubSpot, some log or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Oauth and and have succesfully obtained an accesstoken that is used in the request.&amp;nbsp; The accesstoken is to a Test Account&amp;nbsp; in this case but I have also tested it with a Free account with the same result. I have also tested uploading to the same account from the "playground" on the Files API documentation page with the same result.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Staff&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 07:23:27 GMT</pubDate>
    <dc:creator>StaffG</dc:creator>
    <dc:date>2021-08-16T07:23:27Z</dc:date>
    <item>
      <title>Import file async API (v3) never finishes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/479353#M45970</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am having problems getting files&lt;FONT face="courier new,courier"&gt;/v3/files/import-from-url/async&lt;/FONT&gt; to work.&lt;BR /&gt;&lt;BR /&gt;I am trying to import a file from a URL (URL tested working from several different devices).&lt;BR /&gt;&lt;BR /&gt;I get a 202 from the request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/files/v3/files/import-from-url/async&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the following body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "id":"AAAACg4_sPM",
  "links": {
    "status":"https://api-eu1.hubspot.com/files/v3/files/download-from- 
    url/AAAACg4_sPM/status"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which leads me to believe that the request I correct and I have the necessary permissions/scopes. However, calling the status link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/files/v3/files/import-from-url/async/tasks/AAAACg4_sPM/status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for updates on the status returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "completedAt":"2021-08-13T11:34:43.870Z",
  "startedAt":"2021-08-13T11:34:13.022Z",
  "links":{
    "status":"https://api-eu1.hubspot.com/files/v3/files/download-from-url/AAAACg5WIPc/status"
  },
  "taskId":"AAAACg4_sPM",
  "status":"PROCESSING"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeated requests to the same endpoint continue to return status PROCESSING for several minutes and eventually I get the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "status": "COMPLETE",
  "numErrors": 1,
  "errors": [
    {
      "status": "error",
      "category": "INTERNAL_SERVER_ERROR",
      "message": "Error downloading file: FAILED_UPLOAD"
    }
  ],
  "startedAt": "2021-08-13T09:59:12.955Z",
  "completedAt": "2021-08-13T10:39:30.738Z",
  "taskId": "AAAACg4_sPM"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am stuck. Can anyone help with that error message or point me in the right direction, I have searched the community and internet but not found anyone with a similar problem.&lt;BR /&gt;&lt;BR /&gt;Can I get more information about the error from HubSpot, some log or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Oauth and and have succesfully obtained an accesstoken that is used in the request.&amp;nbsp; The accesstoken is to a Test Account&amp;nbsp; in this case but I have also tested it with a Free account with the same result. I have also tested uploading to the same account from the "playground" on the Files API documentation page with the same result.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Staff&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:23:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/479353#M45970</guid>
      <dc:creator>StaffG</dc:creator>
      <dc:date>2021-08-16T07:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import file async API (v3) never finishes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/479881#M45985</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/228947"&gt;@StaffG&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Are you still experiencing this issue?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510"&gt;@webdew&lt;/a&gt; have you seen anything like this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 13:18:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/479881#M45985</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-08-16T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Import file async API (v3) never finishes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/480031#M46001</link>
      <description>Yes, it still occurs. Tomorrow I will try with the sync version of upload as a workaround and to possibly give some more insight.</description>
      <pubDate>Mon, 16 Aug 2021 16:27:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/480031#M46001</guid>
      <dc:creator>StaffG</dc:creator>
      <dc:date>2021-08-16T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import file async API (v3) never finishes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/484929#M46233</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to solve this on our end. I believe that the "problem" was that we requested (refreshed) the access token between the upload of the file and the status request. When fixing our implementation of OAuth so it does not refresh the access token unnecesarily the problem went away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice however if the error message said something about access token or that it was possible to see a log with more information to be able to trouble shoot API integrations better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Closing with this as solution.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 14:08:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/484929#M46233</guid>
      <dc:creator>StaffG</dc:creator>
      <dc:date>2021-08-25T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Import file async API (v3) never finishes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/485213#M46247</link>
      <description>&lt;P&gt;I was misstaken in my previous post, the change we made that made it work again was that we changed from trying to upload to the root directory to instead upload to a named directory.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 19:06:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-file-async-API-v3-never-finishes/m-p/485213#M46247</guid>
      <dc:creator>StaffG</dc:creator>
      <dc:date>2021-08-25T19:06:42Z</dc:date>
    </item>
  </channel>
</rss>

