<?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: ACI - Websocket - Connection Refused or Handshake Error in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/aci-websocket-connection-refused-or-handshake-error/m-p/3496696#M219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use wss, instead of ws &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 15:22:27 GMT</pubDate>
    <dc:creator>nyadunan</dc:creator>
    <dc:date>2017-08-01T15:22:27Z</dc:date>
    <item>
      <title>ACI - Websocket - Connection Refused or Handshake Error</title>
      <link>https://community.cisco.com/t5/controllers/aci-websocket-connection-refused-or-handshake-error/m-p/3496695#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I can successfully login to APIC node via HTTPS.&amp;nbsp; I am now trying to open a Websocket connection to this node from JavaScript via web socket supported Chrome browser.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have tried to open a Websocket session via "ws:" and "wss:" resulting into different errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;"ws:" – failed with connection refused error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;"wss:" - &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: 'Segoe UI',sans-serif;"&gt;failed: Error during WebSocket handshake: Unexpected response code: 404 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Suspecting issues with my SSL, TLS configurations I have tried disabling SSL 3.0 and enabling TLS versions on my laptop.&amp;nbsp; But the results did not differ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="font-size: 9pt; font-family: Arial, sans-serif;"&gt;Case 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;var ws = new WebSocket("ws://&amp;lt;APIC URL&amp;gt;/socketBgZjfnCmXdwq/1Sebi0sbWfOU1d+uzO9heyMMvOeugrXlnfdapX1p0LRsBEvoVmhOAqeBdqJ0lFZVEpoAEjHAOZfdfX2Mb6PVW/DgTH6yVH21fIoUvKPudG8mvkU+/1Q3qM0j0mtQxcY22JMOz8Y5Ahdw2uIizAGSe7NcJglIG2FKwbUj5bEmNUToadMgy83");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebSocket connection to&lt;/P&gt;&lt;P&gt;'ws://&amp;lt;APIC URL&amp;gt; /socketBgZjfnCmXdwq/1Sebi0sbWfOU1d+uzO9heyMMvOeugrXlnfdapX1p0LRsBEvoVmhOAqeBdqJ0lFZVEpoAEjHAOZfdfX2Mb6PVW/DgTH6yVH21fIoUvKPudG8mvkU+/1Q3qM0j0mtQxcY22JMOz8Y5Ahdw2uIizAGSe7NcJglIG2FKwbUj5bEmNUToadMgy83' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;var ws = new WebSocket("wss://&amp;lt;APIC URL&amp;gt;/socketBgZjfnCmXdwq/1Sebi0sbWfOU1d+uzO9heyMMvOeugrXlnfdapX1p0LRsBEvoVmhOAqeBdqJ0lFZVEpoAEjHAOZfdfX2Mb6PVW/DgTH6yVH21fIoUvKPudG8mvkU+/1Q3qM0j0mtQxcY22JMOz8Y5Ahdw2uIizAGSe7NcJglIG2FKwbUj5bEmNUToadMgy83");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebSocket connection to&lt;/P&gt;&lt;P&gt;'wss://&amp;lt;APIC URL&amp;gt;/socketBgZjfnCmXdwq/1Sebi0sbWfOU1d+uzO9heyMMvOeugrXlnfdapX…G8mvkU+/1Q3qM0j0mtQxcY22JMOz8Y5Ahdw2uIizAGSe7NcJglIG2FKwbUj5bEmNUToadMgy83' failed: Error during WebSocket handshake: Unexpected response code: 404&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I verified that the APIC_COOKIE is correctly concatenated with “/socket”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried looking for any possible policy enablement on APIC for Websocket but could not figure out any configurable policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance will unblock my task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Harish Kamath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:22:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/aci-websocket-connection-refused-or-handshake-error/m-p/3496695#M218</guid>
      <dc:creator>Harish.Kamath</dc:creator>
      <dc:date>2017-01-06T19:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: ACI - Websocket - Connection Refused or Handshake Error</title>
      <link>https://community.cisco.com/t5/controllers/aci-websocket-connection-refused-or-handshake-error/m-p/3496696#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use wss, instead of ws &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:22:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/aci-websocket-connection-refused-or-handshake-error/m-p/3496696#M219</guid>
      <dc:creator>nyadunan</dc:creator>
      <dc:date>2017-08-01T15:22:27Z</dc:date>
    </item>
  </channel>
</rss>

