Empty Exceptions in Server Web-Service

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Empty Exceptions in Server Web-Service

Post by steeffeen »

I'm only getting empty Exceptions when trying the following call

Code: Select all

$serverlist = $service->getFilteredList(array('titleUids' => 'Obstacle@steeffeen', 'offset' => 0, 'length' => 100));
maybe related to this? http://forum.maniaplanet.com/viewtopic. ... 82&t=27829

trying to find the spot in the mp-ws-sdk where it's thrown

//Edit: "empty" looks like this:

Code: Select all

object(Maniaplanet\WebServices\Exception)#8 (9) {
 ["HTTPStatusCode":protected]=>
 int(0)
 ["HTTPStatusMessage":protected]=>
 NULL
 ["message":protected]=>
 string(0) ""
 ["string":"Exception":private]=>
 string(0) ""
 ["code":protected]=>
 int(0)
 ["file":protected]=>
 string(74) "/home/./Maniaplanet/WebServices/HTTPClient.php"
 ["line":protected]=>
 int(338)
 ["trace":"Exception":private]=>
 array(2) {
   [0]=>
   array(6) {
     ["file"]=>
     string(77) "/home/./Maniaplanet/WebServices/Servers.php"
     ["line"]=>
     int(102)
     ["function"]=>
     string(7) "execute"
     ["class"]=>
     string(34) "Maniaplanet\WebServices\HTTPClient"
     ["type"]=>
     string(2) "->"
     ["args"]=>
     array(2) {
       [0]=>
       string(3) "GET"
       [1]=>
       string(60) "/servers/?titleUids=Obstacle%40steeffeen&offset=0&length=100"
     }
   }
   [1]=>
   array(6) {
     ["file"]=>
     string(32) "/home/./server.php"
     ["line"]=>
     int(106)
     ["function"]=>
     string(15) "getFilteredList"
     ["class"]=>
     string(31) "Maniaplanet\WebServices\Servers"
     ["type"]=>
     string(2) "->"
     ["args"]=>
     array(1) {
       [0]=>
       array(3) {
         ["titleUids"]=>
         string(18) "Obstacle@steeffeen"
         ["offset"]=>
         int(0)
         ["length"]=>
         int(100)
       }
     }
   }
 }
 ["previous":"Exception":private]=>
 NULL
}
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    magnetik
    Posts: 1673
    Joined: 01 Feb 2012, 19:13
    Location: Bordeaux
    Contact:

    Re: Empty Exceptions in Server Web-Service

    Post by magnetik »

    I've banned your IP. You where flooding with many request/s after hitting your query limit.

    Please configure your "auto retry" to auto give up for some time ;)

    [edit] you are unbanned of course :
    ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Empty Exceptions in Server Web-Service

    Post by steeffeen »

    yeah that was caused by empty exceptions, i already changed the code

    so far i just slept for a second when an empty exception occurred and then tried again because these empty exceptions only happened every few hours
    though some time ago there has been a time frame during which they must have happened all the time so that the script never ended

    sorry for the flooding and thanks for the unban!

    but why do i get these empty exceptions? :/

    see http://forum.maniaplanet.com/viewtopic. ... 82&t=24284
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Post Reply

      Return to “Maniaplanet Web Services”

      Who is online

      Users browsing this forum: No registered users and 1 guest