cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout Issue when Testing Oauth with Sandbox Endpoint

Hi

I am implementing. a Oauth service - https://developer.authorize.net/api/reference/features/oauth.html

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`.

And using that `code`, Hit https://accesstest.authorize.net/oauth/v1/token for getting access and refresh token. Which is working perfectly fine on local and postman.

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.

Below is the error -

cause: Error: read ECONNRESET

at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) 

errno: -104,

code: 'ECONNRESET',

syscall: 'read'

 

ajayAuthvia
Member
0 REPLIES 0