| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Acuchai
Tyrannis Enterprises
1
|
Posted - 2012.05.28 09:49:00 -
[1] - Quote
Hi,
i am using PHeal to access the Eve API, sometimes i get
Uncaught exception 'PhealHTTPException' with message 'Service Unavailable' in /var/www/Pheal/Pheal.php:401
i assume that happens when the EVE API service is down. In my case i can work around this, but how is this kind of thing handled in other frameworks?
Regrads,
acu |

Dragonaire
Corax. The Big Dirty
41
|
Posted - 2012.05.28 22:10:00 -
[2] - Quote
Maybe they use:
try { ... } catch (PhealHTTPException $e) {}
But that just a guess  Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |

Peter Powers
Terrorists of Dimensions Electric Monkey Overlords
81
|
Posted - 2012.05.29 07:38:00 -
[3] - Quote
Acuchai wrote:Hi,
i am using PHeal to access the Eve API, sometimes i get
Uncaught exception 'PhealHTTPException' with message 'Service Unavailable' in /var/www/Pheal/Pheal.php:401
i assume that happens when the EVE API service is down. In my case i can work around this, but how is this kind of thing handled in other frameworks?
Regrads,
acu Hi Acu,
the PhealHTTPException is thrown if there is a problem with the http request to the EVE API Servers. Specifically the "Service Unavailable" is caused by CCP's servers responding with a 503 Statuscode.
Exceptions like this one enable you to react to the error causing the exception, to learn how to handle Exceptions, i recommend to read up on the subject some random exception tutorial and PHP Manual on Exceptions
so what you want to do is catch the exception, and depending on your use case, display an error and exit, or schedule a retry. |

Acuchai
Tyrannis Enterprises
1
|
Posted - 2012.05.29 17:31:00 -
[4] - Quote
Dragonaire wrote:Maybe they use: try { ... } catch (PhealHTTPException $e) {} But that just a guess 
i am doing that on every PHeal class method call... |

Jules Dupuit
Terrorists of Dimensions Free 2 Play
0
|
Posted - 2012.06.01 09:51:00 -
[5] - Quote
Acuchai wrote:Dragonaire wrote:Maybe they use: try { ... } catch (PhealHTTPException $e) {} But that just a guess  i am doing that on every PHeal class method call... ignoring errors is always a good strategy.
|
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |