<?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: Using fetch() instead of requests library in custom action? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-fetch-instead-of-requests-library-in-custom-action/m-p/518919#M48266</link>
    <description>&lt;P&gt;I can say that the fetch() call is handled, and successful calls' results are passed into an object using " return resp.json()", so I'm handling what is coming out. I managed to make some headway by having main consist of a lone callback(otherFunction()) call, like one of the HubSpot examples, and put all my code in otherFunction. It's gotten me past the unhandled promise exception, now Hubspot just says my outputs aren't defined in code, which is patently false, as the object passed to callback() is an object with outputFields defined correctly according to their format.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 12:30:19 GMT</pubDate>
    <dc:creator>MMartin78</dc:creator>
    <dc:date>2021-11-01T12:30:19Z</dc:date>
  </channel>
</rss>

