<?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: ISE ERS API returns 502 in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929244#M464</link>
    <description>&lt;P&gt;Regarding the auth - my credentials are base64 encoded. When calling the API on port 9060 I get:&amp;nbsp;&lt;BR /&gt;curl: (7) Failed connect to {ise_node}:9060; Connection refused&lt;BR /&gt;From the API Setting page:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;The ERS and OpenAPI services are HTTPS-only REST APIs that operate over port 443.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, ERS APIs also operate over port 9060. However, port 9060 might not be supported for ERS APIs in later Cisco ISE releases. We recommend that you only use port 443 for ERS APIs.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 26 Sep 2023 09:50:04 GMT</pubDate>
    <dc:creator>ivanbadikov</dc:creator>
    <dc:date>2023-09-26T09:50:04Z</dc:date>
    <item>
      <title>ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929204#M462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've been tasked to create a script that replicates MAB entries from one deployment to another using the ciscoisesdk. In my case I have 3 source sites with 1 ISE node each and a target site with 2 ISE nodes in a distributed deployment. All of the nodes are running ISE 3.1. I followed the proper steps to enable the ERS API - enabling the API and creating an ERS admin account.&lt;/P&gt;
&lt;P&gt;On the source nodes I have no problem using the API, everything works as expected. My problem is with the destination nodes. When I or the script make an API call to the destination node I always get the error:&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"message": "An invalid response was received from the server",&lt;BR /&gt;"code": 502&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API call that I'm making is:&lt;/P&gt;
&lt;P&gt;curl --location 'https://{primary_node}/ers/config/endpoint?filter=staticGroupAssignment.EQ.true' --header 'Accept: application/json' --header 'Authorization: Basic {credentials}' -k&lt;/P&gt;
&lt;P&gt;I setup a Debug profile where the components ers, api-gateway and apiservices are all set to DEBUG, but in the respective logs there is no mentioning of the error. I tried digging through Google but I couldn't find any info regarding why this happens and I'm running out of ideas how to troubleshoot this... Any help will be much appreciated!&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Ivan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 08:05:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929204#M462</guid>
      <dc:creator>ivanbadikov</dc:creator>
      <dc:date>2023-09-26T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929230#M463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1226616"&gt;@ivanbadikov&lt;/a&gt;&amp;nbsp;ERS API by default runs on port 9060, also the basic auth should be base64 encoded, try this:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;curl -k -u YOUR_USERNAME:YOURPASSWORD "https://YOURNODE:9060/ers/config/endpoint?filter=staticGroupAssignment.EQ.true"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 09:09:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929230#M463</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-09-26T09:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929244#M464</link>
      <description>&lt;P&gt;Regarding the auth - my credentials are base64 encoded. When calling the API on port 9060 I get:&amp;nbsp;&lt;BR /&gt;curl: (7) Failed connect to {ise_node}:9060; Connection refused&lt;BR /&gt;From the API Setting page:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;The ERS and OpenAPI services are HTTPS-only REST APIs that operate over port 443.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, ERS APIs also operate over port 9060. However, port 9060 might not be supported for ERS APIs in later Cisco ISE releases. We recommend that you only use port 443 for ERS APIs.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 09:50:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929244#M464</guid>
      <dc:creator>ivanbadikov</dc:creator>
      <dc:date>2023-09-26T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929247#M465</link>
      <description>&lt;P&gt;Another this I just notices. When I navigate to&amp;nbsp;https://{ise_node}/ers/sdk I get the following screen:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanbadikov_0-1695721981669.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/198250iE41EAB2A5E47BA57/image-size/large?v=v2&amp;amp;px=999" role="button" title="ivanbadikov_0-1695721981669.png" alt="ivanbadikov_0-1695721981669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 09:54:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929247#M465</guid>
      <dc:creator>ivanbadikov</dc:creator>
      <dc:date>2023-09-26T09:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929275#M466</link>
      <description>&lt;P&gt;Sorry, I missed the port note.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 10:53:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929275#M466</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-09-26T10:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929424#M467</link>
      <description>&lt;P&gt;This query works for me on ISE 3.3:&lt;/P&gt;
&lt;PRE&gt;curl --include --insecure --location \&lt;BR /&gt;  --header 'Accept: application/json' \&lt;BR /&gt;  --user $ISE_REST_USERNAME:$ISE_REST_PASSWORD \&lt;BR /&gt;  --request GET "https://$ISE_HOSTNAME/ers/config/endpoint?filter=staticGroupAssignment.EQ.true"&lt;BR /&gt;&lt;BR /&gt;HTTP/1.1 200&lt;/PRE&gt;
&lt;P&gt;Be careful with your use of ' (single-quotes) vs " (double-quotes) since "'s allow variable interpolation but ''s do not.&lt;/P&gt;
&lt;P&gt;We have examples in &lt;LI-MESSAGE title="ISE ERS API Examples" uid="3622623" url="https://community.cisco.com/t5/security-knowledge-base/ise-ers-api-examples/m-p/3622623#U3622623" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; including &lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-ers-api-examples/ta-p/3622623#toc-hId--592191768" rel="nofollow noopener noreferrer" target="_blank"&gt;Get All Endpoints in a Specifc Endpoint Identity Group&lt;/A&gt;. I also have many other curl examples in the ReadMe file @&amp;nbsp;&lt;A href="https://github.com/1homas/20221004_ISE_REST_APIs_Introduction" target="_blank"&gt;https://github.com/1homas/20221004_ISE_REST_APIs_Introduction&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;If you are seeing "Application Server initializing..." it is because your ISE node is booting or restarting and the services that run the GUI and REST APIs are not yet available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 12:31:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929424#M467</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2023-09-26T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929477#M468</link>
      <description>&lt;P&gt;Tried it your way and still get a 502... Seeing the "Application server is initializing." screen is strange to me because the GUI is working properly. Is there a way to check the status of the REST service or maybe restart it without restarting the whole ISE?&lt;/P&gt;
&lt;P&gt;I think it's something related to the REST service because if I make the API call to the secodnary node it goes through without a problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:23:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/4929477#M468</guid>
      <dc:creator>ivanbadikov</dc:creator>
      <dc:date>2023-09-26T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: ISE ERS API returns 502</title>
      <link>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/5164710#M528</link>
      <description>&lt;P&gt;Experienced similar issue today. Processes all looked good (running) and web UI accessible, but ERS API stopped accepting requests on Primary PAN. Direct API calls from custom application and Postman resulted in a Connection Refused. Attempt to access the ers/sdk page from browser showed same Application Initializing message shown earlier in this thread.&amp;nbsp; Server application services were running and the Web UI accessible. API admin account was enabled. For good measure, disabled and re-enabled admin account to ensure not an issue with account lockout but still unable to connect via API.&amp;nbsp;Even tried accessing secondary PAN (also enabled for API) but received same error.&amp;nbsp; Disabled and re-enabled the ERS API from Administration &amp;gt; System &amp;gt; Settings to see if something stuck but same result. Both nodes in the Deployment showed Active and in sync.&lt;BR /&gt;&lt;BR /&gt;Ended up rebooting Primary PAN and API error resolved, but only Primary PAN API access was working again. To be thorough, I tried API against secondary PAN and again received connection error. Again, verified app server running under CLI (sh app status ise). Rebooted Secondary PAN, and once services back up the API was responding again. For reference, the servers were running ISE 3.1 P5.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 21:07:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ise-ers-api-returns-502/m-p/5164710#M528</guid>
      <dc:creator>chyps</dc:creator>
      <dc:date>2024-08-22T21:07:04Z</dc:date>
    </item>
  </channel>
</rss>

