|
|||||||
| PHP Discussions about the widely-used general-purpose scripting language PHP that is especially suited for Web development and can be embedded into HTML. |
| Post Reply |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi there
I have Full API Access and I am running a script to fetch market data every 10 seconds but after about 10 minutes of running it falls over with the following error. I am running this on a LINUX Server. PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in betfairutility.class.php:77 Stack trace: #0 betfairutility.class.php(77): SoapClient->__doRequest('<?xml version="...', 'https://api.bet...', 'getMarket', 1) #1 [internal function]: SoapClientExtended->__doRequest('<?xml version="...', 'https://api.bet...', 'getMarket', 1, 0) #2 betfairexchangeapi.class.php(69): SoapClient->__call('getMarket', Array) #3 betfairexchangeapi.class.php(69): SoapClientExtended->getMarket(Array) #4 BetfairExchangeApi->betfair_get_market('ZyxKn5rm+BbtgH+...', '105408102') #5 betfairutility.class.php on line 77 Anyone got a clue what may be causing this. Thanks in advance. Regards Oliver |
|
#2
|
|||
|
|||
|
After considering this a bit more, this could be happening because at that moment, we couldn't connect to the API.
So really all we want to do is ignore the error and try again. Any ideas? I have tried modifying the SOAP options to include 'exception' => 0 but that hasn't worked. |
| Post Reply |
| Thread Tools | |
| Display Modes | |
|
|