Failing API Calls

#1 - March 20, 2013, 10:45 p.m.
Blizzard Post
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
Forum Avatar
Battle.net Developer
#4 - March 27, 2013, 9 p.m.
Blizzard Post
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.