<?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 Python rest API request connection refused in Flame Forum</title>
    <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13048238#M115</link>
    <description>&lt;P&gt;I have a rest API currently running on localhost, port 3000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to use a get request in python in any other application or environment and it works fine but for some reason when I try to run it inside flame (in a python hook or the python console) I get a connection error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to establish a new connection: [Errno 61] Connection refused&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think there are any other flame services running on port 3000 so I'm not sure what the issue is. Is there a firewall in flame maybe?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 20:27:30 GMT</pubDate>
    <dc:creator>mike.battcock6TFZ9</dc:creator>
    <dc:date>2024-09-26T20:27:30Z</dc:date>
    <item>
      <title>Python rest API request connection refused</title>
      <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13048238#M115</link>
      <description>&lt;P&gt;I have a rest API currently running on localhost, port 3000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to use a get request in python in any other application or environment and it works fine but for some reason when I try to run it inside flame (in a python hook or the python console) I get a connection error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to establish a new connection: [Errno 61] Connection refused&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think there are any other flame services running on port 3000 so I'm not sure what the issue is. Is there a firewall in flame maybe?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 20:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13048238#M115</guid>
      <dc:creator>mike.battcock6TFZ9</dc:creator>
      <dc:date>2024-09-26T20:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python rest API request connection refused</title>
      <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13048908#M116</link>
      <description>&lt;P&gt;Two random guesses:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is this on Mac? If so it might be some MacOS firewall/security setting, but I'm not a Mac person so I can't give you anything specific.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Check if your thing listening on localhost:3000 is actually listening on 127.0.0.1 (ipv4), ::1 (ipv6) or both -- it's possible it might be bound to only one or the other, but you're losing the lottery when you try to connect to 'localhost' and it resolves to the other one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's nothing in Flame specifically that should prevent you from making the connection; I have a Python hook of my own that connects to another device on the LAN. So I suspect something else is going on.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 04:48:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13048908#M116</guid>
      <dc:creator>ManChicken</dc:creator>
      <dc:date>2024-09-27T04:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python rest API request connection refused</title>
      <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13050642#M117</link>
      <description>&lt;P&gt;I am not aware of any Flame or Flame adjacent activity on that port. &amp;nbsp;What OS and version? &amp;nbsp;What does&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;sudo lsof -Pni |&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;grep '3000.*LISTEN'&lt;/FONT&gt; report back?&lt;BR /&gt;&lt;BR /&gt;Can you share the script, maybe there is an indiactor there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 18:16:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13050642#M117</guid>
      <dc:creator>Beau_James</dc:creator>
      <dc:date>2024-09-27T18:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python rest API request connection refused</title>
      <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13051628#M118</link>
      <description>&lt;P&gt;When encountering a "connection refused" error while making a REST API request in Python, it typically indicates that the server you're trying to connect to is either down, unreachable, or blocking the request. Common causes include: Incorrect URL or port number in the API request. The server isn't running or is improperly configured. Firewall or security settings on the server blocking external requests. Misconfigured DNS or networking issues. To troubleshoot, ensure the API endpoint is correct, the server is up, and check network configurations. You can also use tools like ping or curl for further diagnosis.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 10:15:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13051628#M118</guid>
      <dc:creator>loveneeshtejan23</dc:creator>
      <dc:date>2024-09-28T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python rest API request connection refused</title>
      <link>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13073354#M119</link>
      <description>&lt;P&gt;Sorry i've been away for a week but thank you for all the help. I've managed to get it working. I was using localhost for testing purposes which works fine in Sublime and Houdini, but i've changed my app to run on 0.0.0.0 (while developing) which now works in flame too&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 07:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flame-forum/python-rest-api-request-connection-refused/m-p/13073354#M119</guid>
      <dc:creator>mike.battcock6TFZ9</dc:creator>
      <dc:date>2024-10-09T07:16:15Z</dc:date>
    </item>
  </channel>
</rss>

