Go Back   Developer Program Forum > Sports API > PHP

PHP 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
Thread Tools Display Modes
Old 04-12-2012, 03:04 PM
tsango1972. tsango1972. is offline
Junior Member
Join Date: Apr 2012
Posts: 3
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="...', '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.


Old 04-14-2012, 09:37 AM
tsango1972. tsango1972. is offline
Junior Member
Join Date: Apr 2012
Posts: 3

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

All times are GMT. The time now is 04:20 AM.

BETFAIR® and the BETFAIR LOGO are registered trade marks of The Sporting Exchange Limited. Data on Betfair website(s) (including pricing data) is protected by © and database rights. It may not be used for any purpose without a licence. © The Sporting Exchange Limited. All rights reserved.