<?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 Timeout Issue when Testing Oauth with Sandbox Endpoint in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Timeout-Issue-when-Testing-Oauth-with-Sandbox-Endpoint/m-p/87834#M55317</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am implementing. a Oauth service -&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/oauth.html" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/oauth.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created a testPartner account in sandbox and also merchant inside of it. Created application which provided client_id and client_secret to perform the flow as mention in documentation. However, the flow is working on postman / local. To redirect merchant to authorizenet portal to authenticate and return back with `code` and `state`.&lt;/P&gt;&lt;P&gt;And using that `code`, Hit&amp;nbsp;&lt;A href="https://accesstest.authorize.net/oauth/v1/token" target="_blank" rel="noopener"&gt;https://accesstest.authorize.net/oauth/v1/token&lt;/A&gt;&amp;nbsp;for getting access and refresh token. Which is working perfectly fine on local and postman.&lt;/P&gt;&lt;P&gt;But same code when deployed on server and exceute axios call for getting access and refesh token using code. /oauth/token api returning timeout. No sure why getting this issue. Please provide the fix for it.&lt;/P&gt;&lt;P&gt;Below is the error -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cause:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;SPAN&gt;: read ECONNRESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;errno: -104,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code: 'ECONNRESET',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;syscall: 'read'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 12:28:56 GMT</pubDate>
    <dc:creator>ajayAuthvia</dc:creator>
    <dc:date>2023-10-18T12:28:56Z</dc:date>
    <item>
      <title>Timeout Issue when Testing Oauth with Sandbox Endpoint</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Timeout-Issue-when-Testing-Oauth-with-Sandbox-Endpoint/m-p/87834#M55317</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am implementing. a Oauth service -&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/oauth.html" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/oauth.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created a testPartner account in sandbox and also merchant inside of it. Created application which provided client_id and client_secret to perform the flow as mention in documentation. However, the flow is working on postman / local. To redirect merchant to authorizenet portal to authenticate and return back with `code` and `state`.&lt;/P&gt;&lt;P&gt;And using that `code`, Hit&amp;nbsp;&lt;A href="https://accesstest.authorize.net/oauth/v1/token" target="_blank" rel="noopener"&gt;https://accesstest.authorize.net/oauth/v1/token&lt;/A&gt;&amp;nbsp;for getting access and refresh token. Which is working perfectly fine on local and postman.&lt;/P&gt;&lt;P&gt;But same code when deployed on server and exceute axios call for getting access and refesh token using code. /oauth/token api returning timeout. No sure why getting this issue. Please provide the fix for it.&lt;/P&gt;&lt;P&gt;Below is the error -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cause:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;SPAN&gt;: read ECONNRESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;errno: -104,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code: 'ECONNRESET',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;syscall: 'read'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:28:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Timeout-Issue-when-Testing-Oauth-with-Sandbox-Endpoint/m-p/87834#M55317</guid>
      <dc:creator>ajayAuthvia</dc:creator>
      <dc:date>2023-10-18T12:28:56Z</dc:date>
    </item>
  </channel>
</rss>

