Showing results for 
Search instead for 
Did you mean: 'Read timed out' on Creating Subscription



I have invoked the create subscription API with profile data (Sandbox). Im getting this error on my server log

[Server:service-node2] 18:21:45,943 ERROR [net.authorize.util.HttpCallTask] (pool-11-thread-1) Http request execute failed: 'Read timed out'
[Server:service-node2] 18:21:45,944 WARN  [net.authorize.util.HttpCallTask] (pool-11-thread-1) Adding ErrorMessage: Code: '', Text: 'Read timed out'
[Server:service-node2] 18:21:45,944 ERROR [net.authorize.api.controller.base.ApiOperationBase] (http-/ Invalid response:'net.authorize.api.contract.v1.ANetApiResponse@475528b6'

But Subscription was created successfully when i check in merchant login.


In our web application we will be offering products on Success resonse after invoking API. What if this error happens in production environment , where a customer will be charged but no products offered.

This is scaring me. Is this a usual scenario. How to get rid of this.
Kindly someone help me in this.



Suresh Babu R


Hi @sureshrb3


How often you seeing this error ? is this on sandbox only or have seen it on prod . 


Also look at signing up for webhooks for subscriptions to be notified realtime on the subscription events . 



Event Description
net.authorize.customer.subscription.created Notifies you that a subscription has been created.
net.authorize.customer.subscription.updated Notifies you that a subscription has been updated.
net.authorize.customer.subscription.suspended Notifies you that a subscription has been suspended.
net.authorize.customer.subscription.terminated Notifies you that a subscription has been terminated.
net.authorize.customer.subscription.cancelled Notifies you that a subscription has been cancelled.
net.authorize.customer.subscription.expiring Notifies you when a subscription has only one recurrence left to be charged.

Send feedback at
Administrator Administrator


Thanks for your reply!!

Rarely this is happening to me in Sandbox. I've not moved this to Production yet. I need a clarification about this before going live on production.

Without webhook can we solve this or can we get rid of this?



Suresh Babu R

I had/ have this too, and reported it on this Forum.


When I tested using production credentials, the AIM / ARB sailed through with no problems. Only the sandbox seems to be affected.  The **REAL** problem is that the sandbox is NOT a mirror of the production environment, IMHO, even though the documentation and the website says it is.


For me, the AIM transaction times out at 30s, but the transaction does in fact succeed.  This is forcing us to code in a trap for the SocketTimeoutException to enable testing, which is a dangerous thing. We have to be very sure to remove this in production.


Needless to say, we are not very happy with the state of things.


Interestingly, website version (at, where you can enter your (test!) credentials to have the API populated, seems to work ok. It still hangs on the AIM AuthAndCapture but it does go through and you can see the response. I suspect that the timeout may have been relaxed greater than the 30s enabled by the SDK.


I'm about to re-build the SDK for the nth time to see if a 60s timeout would allow for the transaction to go through for testing.


Also, here's my stack trace, even with the 60s timeout set for both . I'm using:

anet-sdk-java 1.9.7

windows 10

java 1.8 (for both build and deploy)

eclipse Oxygen and Junit4

Sending to Sandbox Read timed out
	at Method)
	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(
	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(
	at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(
	at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(
	at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(
	at org.apache.http.protocol.HttpRequestExecutor.execute(
	at org.apache.http.impl.execchain.MainClientExec.execute(
	at org.apache.http.impl.execchain.ProtocolExec.execute(
	at org.apache.http.impl.execchain.RetryExec.execute(
	at org.apache.http.impl.execchain.RedirectExec.execute(
	at org.apache.http.impl.client.InternalHttpClient.doExecute(
	at org.apache.http.impl.client.CloseableHttpClient.execute(
	at org.apache.http.impl.client.CloseableHttpClient.execute(
	at net.authorize.util.HttpClient.execute(
	at net.authorize.Merchant.postTransaction(
	at net.authorize.aim.functional_test.SimpleAuthCaptureTest.testCreditCardAuthCapture(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(

The transaction clearly made it to the server.

Captured/Pending Settlement
17-Mar-2018 15:36:57Test, JohnVXXXX1111USD 27.36-- 
USD 27.36


I'm suspecting a connection that is not being released and a return response that is not being sent.


Any luck on the side, guys? This has been going on for a while it seems.



One last item for troubleshooting this:


The socketTimeOutException occurs on EVERY AIM transaction in the Sandbox.

Hi @ship2storage2


Have you seen the TLS 1.2 link 


For cipher support ECDHE and AESGCM are preferred, SHA-1 ciphers will be not be supported. For a full list/report SSL Labs report can be run to see and verify TLS version and ciphers supported. Please see below for a matrix of reports available, by API endpoint and environment.



Also you can reach out to our support at 877.447.3938




  Production Sandbox
Transact, Legacy (Non-Akamai) Not Applicable
Transact, Akamai
ANet API, Legacy (Non-Akamai) Not Applicable
ANet API, Akamai




Send feedback at