<?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 Upload a file into HubSpot via the API is stuck from time to time in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Upload-a-file-into-HubSpot-via-the-API-is-stuck-from-time-to/m-p/421340#M41783</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the following Python script to upload a file by the HubSpot API.&lt;/P&gt;&lt;P&gt;From time to time the script is stuck, did anyone experience a simillar problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Python script is listed below:&lt;/P&gt;&lt;P&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import sys&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;input = str(sys.argv[1])&lt;BR /&gt;files = {'files': open(input, 'rb')}&lt;BR /&gt;r = requests.post(&lt;BR /&gt;'&lt;A href="http://api.hubapi.com/filemanager/api/v2/files?hapikey=&amp;lt;key" target="_blank"&gt;http://api.hubapi.com/filemanager/api/v2/files?hapikey=&amp;lt;key&lt;/A&gt;&amp;gt;',&lt;BR /&gt;data={&lt;BR /&gt;"folder_paths": "&amp;lt;folder&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;files=files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Yoram&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 18:13:01 GMT</pubDate>
    <dc:creator>yorambaron</dc:creator>
    <dc:date>2021-03-23T18:13:01Z</dc:date>
  </channel>
</rss>

