<?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>question Nifi tasks not honouring HTTP_PROXY settings in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-tasks-not-honouring-HTTP-PROXY-settings/m-p/358074#M237742</link>
    <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;SPAN&gt;I have a &lt;/SPAN&gt;apache/nifi:latest&lt;SPAN&gt; instance spun inside an Amazon Linux 2 EC2. For reference, see this guide: &lt;/SPAN&gt;&lt;A href="https://medium.com/geekculture/host-a-fully-persisted-apache-nifi-service-with-docker-ffaa6a5f54a3" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I have a QuerySalesforceObject ver. 1.18.0 that makes use of StandardOauth2AccessTokenProvider.&amp;nbsp;&amp;nbsp;The oauth2 provider url is configured at &lt;A href="https://test.salesforce.com/services/oauth2/token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/token&lt;/A&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CRISSAEGRIM_0-1669040457150.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36289iF073E1ABD10C67CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CRISSAEGRIM_0-1669040457150.png" alt="CRISSAEGRIM_0-1669040457150.png" /&gt;&lt;/span&gt;&lt;P&gt;I can curl this url from the box and from inside the docker container just fine (I don’t get a timeout).&lt;/P&gt;&lt;PRE&gt;[root@ip-10-229-18-107 \~\]# docker exec -it nifi_container_persistent /bin/sh

printenv | grep -i proxy

HTTPS_PROXY=http://proxy.MY_DOMAIN.com:3128

no_proxy=localhost,127.0.0.1,MY_DOMAIN.com,.amazonaws.com

NO_PROXY=localhost,127.0.0.1, MY_DOMAIN.com,.amazonaws.com

https_proxy=http://proxy.MY_DOMAIN.com:3128

http_proxy=http://proxy.MY_DOMAIN.com:3128

HTTP_PROXY=http://proxy.MY_DOMAIN.com:3128

curl https://test.salesforce.com/services/oauth2/token

{"error":"unsupported_grant_type","error_description":"grant type not supported"}#&lt;/PRE&gt;&lt;P&gt;But when I run the task, oauth2 fails with an error&lt;/P&gt;&lt;PRE&gt;java.io.UncheckedIOException: OAuth2 access token request failed

Caused by: java.net.SocketTimeoutException: connect timed out&lt;/PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CRISSAEGRIM_1-1669040482661.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36290iCF4B149D452066A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CRISSAEGRIM_1-1669040482661.png" alt="CRISSAEGRIM_1-1669040482661.png" /&gt;&lt;/span&gt;&lt;P&gt;This leads me to believe the proxy settings are not being honored by the class. How can I fix this?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Nov 2022 14:22:06 GMT</pubDate>
    <dc:creator>CRISSAEGRIM</dc:creator>
    <dc:date>2022-11-21T14:22:06Z</dc:date>
    <item>
      <title>Nifi tasks not honouring HTTP_PROXY settings</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-tasks-not-honouring-HTTP-PROXY-settings/m-p/358074#M237742</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;SPAN&gt;I have a &lt;/SPAN&gt;apache/nifi:latest&lt;SPAN&gt; instance spun inside an Amazon Linux 2 EC2. For reference, see this guide: &lt;/SPAN&gt;&lt;A href="https://medium.com/geekculture/host-a-fully-persisted-apache-nifi-service-with-docker-ffaa6a5f54a3" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I have a QuerySalesforceObject ver. 1.18.0 that makes use of StandardOauth2AccessTokenProvider.&amp;nbsp;&amp;nbsp;The oauth2 provider url is configured at &lt;A href="https://test.salesforce.com/services/oauth2/token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/token&lt;/A&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CRISSAEGRIM_0-1669040457150.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36289iF073E1ABD10C67CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CRISSAEGRIM_0-1669040457150.png" alt="CRISSAEGRIM_0-1669040457150.png" /&gt;&lt;/span&gt;&lt;P&gt;I can curl this url from the box and from inside the docker container just fine (I don’t get a timeout).&lt;/P&gt;&lt;PRE&gt;[root@ip-10-229-18-107 \~\]# docker exec -it nifi_container_persistent /bin/sh

printenv | grep -i proxy

HTTPS_PROXY=http://proxy.MY_DOMAIN.com:3128

no_proxy=localhost,127.0.0.1,MY_DOMAIN.com,.amazonaws.com

NO_PROXY=localhost,127.0.0.1, MY_DOMAIN.com,.amazonaws.com

https_proxy=http://proxy.MY_DOMAIN.com:3128

http_proxy=http://proxy.MY_DOMAIN.com:3128

HTTP_PROXY=http://proxy.MY_DOMAIN.com:3128

curl https://test.salesforce.com/services/oauth2/token

{"error":"unsupported_grant_type","error_description":"grant type not supported"}#&lt;/PRE&gt;&lt;P&gt;But when I run the task, oauth2 fails with an error&lt;/P&gt;&lt;PRE&gt;java.io.UncheckedIOException: OAuth2 access token request failed

Caused by: java.net.SocketTimeoutException: connect timed out&lt;/PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CRISSAEGRIM_1-1669040482661.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36290iCF4B149D452066A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CRISSAEGRIM_1-1669040482661.png" alt="CRISSAEGRIM_1-1669040482661.png" /&gt;&lt;/span&gt;&lt;P&gt;This leads me to believe the proxy settings are not being honored by the class. How can I fix this?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:22:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-tasks-not-honouring-HTTP-PROXY-settings/m-p/358074#M237742</guid>
      <dc:creator>CRISSAEGRIM</dc:creator>
      <dc:date>2022-11-21T14:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi tasks not honouring HTTP_PROXY settings</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-tasks-not-honouring-HTTP-PROXY-settings/m-p/363885#M239079</link>
      <description>&lt;P&gt;Figured out the issue.&amp;nbsp; The java SDK that nifi uses does not honour "noProxy" flags.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 22:00:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-tasks-not-honouring-HTTP-PROXY-settings/m-p/363885#M239079</guid>
      <dc:creator>CRISSAEGRIM</dc:creator>
      <dc:date>2023-02-15T22:00:28Z</dc:date>
    </item>
  </channel>
</rss>

