<?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: sharing/rest/oauth2/token is timing out (socket hang up error) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sharing-rest-oauth2-token-is-timing-out-socket/m-p/25270#M2201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you&amp;nbsp;seeing this error message on your server or client? If you are seeing it on the client, it usually means the request timed out. I would suggest catching the error and retrying. If you are seeing this from the server it usually means the client canceled the request, which wouldn't make sense in this situation since you are the client as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it work with http?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2020 16:36:41 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2020-02-21T16:36:41Z</dc:date>
    <item>
      <title>sharing/rest/oauth2/token is timing out (socket hang up error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sharing-rest-oauth2-token-is-timing-out-socket/m-p/25269#M2200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created an endpoint to generate a token using the instructions I found online.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I use a https request in Nodejs, i've tried both GET and POST. It works fine on my navigator but i keep getting the same error from my terminal console or from lambda functions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ Error: socket hang up&lt;BR /&gt; at createHangUpError (_http_client.js:323:15)&lt;BR /&gt; at TLSSocket.socketOnEnd (_http_client.js:426:23)&lt;BR /&gt; at TLSSocket.emit (events.js:203:15)&lt;BR /&gt; at endReadableNT (_stream_readable.js:1145:12)&lt;BR /&gt; at process._tickCallback (internal/process/next_tick.js:63:19) code: 'ECONNRESET' }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows what's going on ? Do i need to whitelist the domain or something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sharing-rest-oauth2-token-is-timing-out-socket/m-p/25269#M2200</guid>
      <dc:creator>MohamedMezian1</dc:creator>
      <dc:date>2020-02-20T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: sharing/rest/oauth2/token is timing out (socket hang up error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sharing-rest-oauth2-token-is-timing-out-socket/m-p/25270#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you&amp;nbsp;seeing this error message on your server or client? If you are seeing it on the client, it usually means the request timed out. I would suggest catching the error and retrying. If you are seeing this from the server it usually means the client canceled the request, which wouldn't make sense in this situation since you are the client as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it work with http?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sharing-rest-oauth2-token-is-timing-out-socket/m-p/25270#M2201</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-02-21T16:36:41Z</dc:date>
    </item>
  </channel>
</rss>

