Betfair Developers

Discussions about the widely-used general-purpose scripting language PHP that is especially suited for Web development and can be embedded into HTML.

Thread Closed
tsango1972. tsango1972. is offline
Junior Member
Default Uncaught SoapFault exception on LINUX Server

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="...', '', 'getMarket', 1)
#1 [internal function]: SoapClientExtended->__doRequest('<?xml version="...', '', '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.


tsango1972. tsango1972. is offline
Junior Member

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.
Thread Closed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump