Exception - HTTP Request timed out
Posted: Fri Jan 31, 2014 7:42 am
Hi,
We have two concerns regarding your service and they are:
1) We are having exceptions when our site connects to your API. Most probably, all the API calls are working well with all the (human) clients but when it come to bots we have been receiving lot of errors. However we are not sure if this a bot specific error or a general error.
Following are the details of each exceptions we have been collecting so far. (User agent vs the exception)
30th Jan
HTTP_USER_AGENT: Mozilla/5.0 (compatible; MJ12bot/v1.4.4; http://www.majestic12.co.uk/bot.php?+) Exception: HTTP Request timed out
31st Jan
HTTP_USER_AGENT: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Exception: HTTP Request timed out
HTTP_USER_AGENT: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Exception: Unable to contact server: fsock Error: Connection timed out
FYI, generally, we have been receiving 2-3 exceptions per day.
Can you please check and let us know the cause of the above issues.
FYI, the following is the API functions we are using
---------------------------------------
require_once path .'library/WURFL/data/WurflCloudClient/Client/Client.php';
// Create a WURFL Cloud Config
$config = new WurflCloud_Client_Config();
// Set your API Key here
$config->api_key = 'API key';
// Create a WURFL Cloud Client
$client = new WurflCloud_Client_Client($config, new WurflCloud_Cache_Null());
// Detect the visitor's device
$client->detectDevice();
$client->getDeviceCapability('is_tablet')
$client->getDeviceCapability('can_assign_phone_number')
----------------------------------------
2) Additionally, can you please confirm the IP addresses from which you serve our API requests, because we are going to implement a restriction on outbound traffic on our firewall, so we need to whitelist all (IP, port) combinations:
I believe they are:
a) WURFL - Scientia Mobile - 50.57.185.227 | port 80
b) WURFL secondary IP - 31.222.190.95 | port 80
Thanks,
Ashan
We have two concerns regarding your service and they are:
1) We are having exceptions when our site connects to your API. Most probably, all the API calls are working well with all the (human) clients but when it come to bots we have been receiving lot of errors. However we are not sure if this a bot specific error or a general error.
Following are the details of each exceptions we have been collecting so far. (User agent vs the exception)
30th Jan
HTTP_USER_AGENT: Mozilla/5.0 (compatible; MJ12bot/v1.4.4; http://www.majestic12.co.uk/bot.php?+) Exception: HTTP Request timed out
31st Jan
HTTP_USER_AGENT: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Exception: HTTP Request timed out
HTTP_USER_AGENT: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Exception: Unable to contact server: fsock Error: Connection timed out
FYI, generally, we have been receiving 2-3 exceptions per day.
Can you please check and let us know the cause of the above issues.
FYI, the following is the API functions we are using
---------------------------------------
require_once path .'library/WURFL/data/WurflCloudClient/Client/Client.php';
// Create a WURFL Cloud Config
$config = new WurflCloud_Client_Config();
// Set your API Key here
$config->api_key = 'API key';
// Create a WURFL Cloud Client
$client = new WurflCloud_Client_Client($config, new WurflCloud_Cache_Null());
// Detect the visitor's device
$client->detectDevice();
$client->getDeviceCapability('is_tablet')
$client->getDeviceCapability('can_assign_phone_number')
----------------------------------------
2) Additionally, can you please confirm the IP addresses from which you serve our API requests, because we are going to implement a restriction on outbound traffic on our firewall, so we need to whitelist all (IP, port) combinations:
I believe they are:
a) WURFL - Scientia Mobile - 50.57.185.227 | port 80
b) WURFL secondary IP - 31.222.190.95 | port 80
Thanks,
Ashan