Hi!
Every 30 seconds I check my balance with
getAccountFunds, to see if it is ok to place a bet.
I'd like to keep the exposed part below a set threshold.
But lately, I get a lot of timeouts for that call.
I called the api ~6000 times today and yesterday,
and in 35 case (almost 0.6 %)
I get a timeout.
The post method has a timeout of 30 seconds
Is there something going on at Betfair?
I have not noticed this before.
2015-06-16 12:39:23.660 RPC.Get_JSON_Reply : posting: {"method":"AccountAPING/v1.0/getAccountFunds", "jsonrpc":"2.0", "id":15, "params":{}}
2015-06-16 12:39:53.739 RPC.Get_JSON_Reply : Post Timeout -> Give up!
Times are in CET
As a consequence, I terminate the bot, and restart it later.
This could be improved, but I wonder what is the best thing
to do here?
To logout/login?
To retry ?
To increase Timeout on POST? - to 60s ? 120s?
Commennts anyone ?
/Björn
Every 30 seconds I check my balance with
getAccountFunds, to see if it is ok to place a bet.
I'd like to keep the exposed part below a set threshold.
But lately, I get a lot of timeouts for that call.
I called the api ~6000 times today and yesterday,
and in 35 case (almost 0.6 %)
I get a timeout.
The post method has a timeout of 30 seconds
Is there something going on at Betfair?
I have not noticed this before.
2015-06-16 12:39:23.660 RPC.Get_JSON_Reply : posting: {"method":"AccountAPING/v1.0/getAccountFunds", "jsonrpc":"2.0", "id":15, "params":{}}
2015-06-16 12:39:53.739 RPC.Get_JSON_Reply : Post Timeout -> Give up!
Times are in CET
As a consequence, I terminate the bot, and restart it later.
This could be improved, but I wonder what is the best thing
to do here?
To logout/login?
To retry ?
To increase Timeout on POST? - to 60s ? 120s?
Commennts anyone ?
/Björn


Comment