Help - Search - Members - Calendar
Full Version: Fatal error: SOAP Fault: with HardwareBandwithService
The Planet Forums > API > API Support
Mantas_S
Hi,

I try to run scheduled script every day to collect all servers traffic data into our internal database and I always get this error (not immediately):

Output example:
--------------------------
[SKIP]

Traffic usage for: Server1
Current 17MB
Allowed 2000MB
Percents 1%


Traffic usage for: Server2
Current 393MB
Allowed 2000MB
Percents 20%



Fatal error: SOAP Fault: (faultcode: s:Client, faultstring: An error occurred while processing your request for bandwidth. Please try again later.) in /var/www/stats/theplanet/monthly_traffic.php on line 22

---------------------------
Output end


I'm using simple PHP script:

--- SCRIPT START ----

function get_monthly_traffic($hw_id, $hw_label)
{
$paramsurl = array(
'login' => 'my_user',
'password' => 'my_pass'
);
$params = array(
"HardwareID" => $hw_id,
"MonthDate" => date('Y-m-d')
);
$wsdl_url = 'https://api.theplanet.com/Svc/HardwareBandwidthService.svc?WSDL';
try
{
$bw_svc = new SoapClient($wsdl_url, $paramsurl);
$traffic = $bw_svc->GetBandwidthByMonth(new SoapParam($params, "params"));
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}
$current = $traffic->ActualUsage;
$allowed = $traffic->AllowedUsage;
do_something_with_data();
}
--- SCRIPT END ----

I already tried to add 10 sec sleep interval between each request - but that's doesn't help.

Any ideas?

Thanks
Mantas
Ralph Y. Bou Mechrek
Hello Mantas,

In order to assist you better, we would need to take a look at your account. Is it possible for you to create a ticket which includes your customer account id? Then please message me the ticket number and I will investigate potential issues with your account.

Also please include in the ticket a link to this post and a note indicating that development will handle the ticket.

Thank you,

Ralph Y. Bou Mechrek

QUOTE (Mantas_S @ May 4 2009, 11:08 AM) *
Hi,

I try to run scheduled script every day to collect all servers traffic data into our internal database and I always get this error (not immediately):

Output example:
--------------------------
[SKIP]

Traffic usage for: Server1
Current 17MB
Allowed 2000MB
Percents 1%


Traffic usage for: Server2
Current 393MB
Allowed 2000MB
Percents 20%



Fatal error: SOAP Fault: (faultcode: s:Client, faultstring: An error occurred while processing your request for bandwidth. Please try again later.) in /var/www/stats/theplanet/monthly_traffic.php on line 22

---------------------------
Output end


I'm using simple PHP script:

--- SCRIPT START ----

function get_monthly_traffic($hw_id, $hw_label)
{
$paramsurl = array(
'login' => 'my_user',
'password' => 'my_pass'
);
$params = array(
"HardwareID" => $hw_id,
"MonthDate" => date('Y-m-d')
);
$wsdl_url = 'https://api.theplanet.com/Svc/HardwareBandwidthService.svc?WSDL';
try
{
$bw_svc = new SoapClient($wsdl_url, $paramsurl);
$traffic = $bw_svc->GetBandwidthByMonth(new SoapParam($params, "params"));
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}
$current = $traffic->ActualUsage;
$allowed = $traffic->AllowedUsage;
do_something_with_data();
}
--- SCRIPT END ----

I already tried to add 10 sec sleep interval between each request - but that's doesn't help.

Any ideas?

Thanks
Mantas

Mantas_S
QUOTE (Ralph Y. Bou Mechrek @ May 5 2009, 12:29 AM) *
Hello Mantas,

In order to assist you better, we would need to take a look at your account. Is it possible for you to create a ticket which includes your customer account id? Then please message me the ticket number and I will investigate potential issues with your account.

Also please include in the ticket a link to this post and a note indicating that development will handle the ticket.

Thank you,

Ralph Y. Bou Mechrek


Hi,

any updates?

Thanks
Mantas
Ralph Y. Bou Mechrek
QUOTE (Mantas_S @ May 11 2009, 04:17 AM) *
Hi,

any updates?

Thanks
Mantas



Hello,

We are still in the process of investigating this issue. Thank you very much for all the information you provided.

We will definetly post a reply at the conclusion of our investigation.

Thank you,

Ralph Y. Bou Mechrek
Ralph Y. Bou Mechrek
QUOTE (Ralph Y. Bou Mechrek @ May 11 2009, 09:08 AM) *
Hello,

We are still in the process of investigating this issue. Thank you very much for all the information you provided.

We will definetly post a reply at the conclusion of our investigation.

Thank you,

Ralph Y. Bou Mechrek


Hello,

I have attempted everything to reproduce the issue and am unable to do so. Are you still experiencing those intermittent issues?

Thank you,

Ralph Y. Bou Mechrek
Mantas_S
Hi,

I tried to execute same script as I sent you. I get same error almost immediately. I tried to run this script from different OS, different PHP builds - still same problem.

Any other ideas?

Thanks
Mantas
Ralph Y. Bou Mechrek
QUOTE (Mantas_S @ May 22 2009, 09:15 AM) *
Hi,

I tried to execute same script as I sent you. I get same error almost immediately. I tried to run this script from different OS, different PHP builds - still same problem.

Any other ideas?

Thanks
Mantas



Hello,

I will investigate this issue further on my end.

Thank you,

Ralph Y. Bou Mechrek
Mantas_S
Hi,

as I understand you perform checks from your, let's say local, network. If you want I can provide external server with scripts. So you can login there and try to run/debug from "external" network

Regards
Mantas
Ralph Y. Bou Mechrek
QUOTE (Mantas_S @ May 28 2009, 03:25 AM) *
Hi,

as I understand you perform checks from your, let's say local, network. If you want I can provide external server with scripts. So you can login there and try to run/debug from "external" network

Regards
Mantas


Hello,

I would like to say I really appreciate your thoughtfulness when it comes to resolving this issue. We will be running tests from both our internal network and an external network.

However if we still could not diagnose the problem, then your external server will definitely be appreciated.

Thank you,

Ralph Y. Bou Mechrek
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.