Zhue
1 decade ago
Failing API Calls
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
Peratryn
Web & Mobile Team
1 decade ago
Failing API Calls
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.
Edited by Peratryn 03/27/2013 09:00 PM
Currently Ranked: News