We have updated our Terms of Service and Privacy Policy.
Dismiss
Regional FlagFailing API CallsSource
avatar
Zhue
Target Source
#1 - 2013/03/20 10:45:00 PM
This code is timing out, worked fine the other day. Not sure if its my site host or if I am being throttled? Is there a way to tell?


<?php
$htmlScrap = file_get_contents('http://us.battle.net/api/wow/character/aerie-peak/Zhue?fields=stats');
echo htmlScrap;
?>


Results:

Warning: file_get_contents(http://us.battle.net/api/wow/character/aerie-peak/Zhue?fields=stats): failed to open stream: Connection timed out in ********/wowapi.php on line 2 NULL

avatar
Battle.net Developer
Target Source
#4 - 2013/03/27 09:00:00 PM
Yeah, if you are getting timeouts than the issue is not anything to do with our API code. Either you're being blocked by our server admins (VERY unlikely, for all of the sites I've checked about this I've NEVER seen it be an issue), or your ISP or their ISP is blocking the calls for some reason. Often dev work can trigger their (horrible) filters.