Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

SocketTimeoutException - API Express

Hi,

I'm getting an intermittent SocketTimeException. What can the problem me? Sometimes it goes through, and sometimes it doesn't. Could that be on your end since I'm using API Express?
{
"status": 400,
"uri": "https://api.appery.io/rest/1/apiexpre.......",
"response": {
"code": "AE009",
"message": "java.net.SocketTimeoutException: connect timed out",
"status": "BAD_REQUEST"
}
}

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

SocketTimeoutException - API Express

Hi Mike,

API Express has two type of timeouts:

emSocket timeout and Request timeout./em

According to your case you get a socket timeout, it could happen because of:

1) Your databse server is slow, so it response more than 1 sec. to connect to the socket.

2) API Express waits a socket, because your database server is connected with other database clients, which cause an additional load time.

3) There is a long distance between our API Express server and your database server.

Return to “Issues”