maniaplanet / manialive

PHP controller for the ManiaPlanet Dedicated Server
GNU Lesser General Public License v3.0
9 stars 4 forks source link

Freezone error #32

Closed magnetik closed 10 years ago

magnetik commented 10 years ago

From Knutselm...@gmail.com on May 22, 2011 16:13:18

This error is on all my freezone servers now and then:

---------------------------------

-> Exception with code 0 API error. Check the HTTP error code.

Original issue: http://code.google.com/p/manialive/issues/detail?id=32

magnetik commented 10 years ago

From melot.philippe on May 23, 2011 01:56:59

Can you put some debug output in the RestClient to see the exact moment of the Exception throw ?

Status: Started
Owner: melot.philippe

magnetik commented 10 years ago

From Knutselm...@gmail.com on May 23, 2011 04:06:44

Sure, no problem. Please tell me how to proceed.

magnetik commented 10 years ago

From melot.philippe on May 23, 2011 04:19:52

Edit ManiaLib\Rest\Client.php file and put some echo to see where you can have this error, and after put a var_dump to get the object

magnetik commented 10 years ago

From Knutselm...@gmail.com on May 24, 2011 06:39:00

I added var_dump($response); into line 209 of Rest/Client.php It gave a bit more info, but i doubt if it is useful:

bool(false)

-> Exception with code 0
    API error. Check the HTTP error code.
  - in
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLib/Rest/Client
      .php on line 212
  - Stack: #0
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLivePlugins/Fre
      ezone/Freezone/Plugin.php(562): ManiaLib\Rest\Client->execute('PUT',
      '/freezone/rules...', Array)
           #1 [internal function]:
      ManiaLivePlugins\Freezone\Freezone\Plugin->onEndChallenge(Array, Array,
      false, false, false)
           #2
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLive/DedicatedA
      pi/Callback/Event.php(28): call_user_func_array(Array, Array)
           #3
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLive/Event/Disp
      atcher.php(52):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\Fre
      ezone\Freezone\Plugin))
           #4
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLive/DedicatedA
      pi/Connection.php(108):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #5
      /home/tmservers/servers/mcon3/ManiaLive217/libraries/ManiaLive/Applicatio
      n/AbstractApplication.php(146):
      ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #6
      /home/tmservers/servers/mcon3/ManiaLive217/bootstrapper.php(82):
      ManiaLive\Application\AbstractApplication->run()
           #7 {main}
magnetik commented 10 years ago

From melot.philippe on May 24, 2011 07:15:10

I don't think it came from $response but before, try to var_dump the exception in the ManiaLib\Rest\Client.

magnetik commented 10 years ago

From Knutselm...@gmail.com on May 24, 2011 15:43:25

bool(false) NULL array(20) { ["url"]=> string(40) " https://ws.trackmania.com/freezone/live/ " ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(0) ["upload_content_length"]=> float(0) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) }

-> Exception with code 0 API error. Check the HTTP error code.

magnetik commented 10 years ago

From melot.philippe on May 25, 2011 01:23:12

can you try to expose the $this just before the call and just after (in the client Class I mean).

magnetik commented 10 years ago

From Knutselm...@gmail.com on May 25, 2011 15:44:43

Can you please post the edited client.php in our forums? I asked for help in there, but we don't know how to do it. http://www.intenseclan.com/forum/viewtopic.php?f=34&t=188 Thanks

magnetik commented 10 years ago

From melot.philippe on May 26, 2011 01:30:46

Reply on the forum ;)

magnetik commented 10 years ago

From mar...@hccst.com.br on June 08, 2011 18:00:40

This error is caused by the use of xaseco command /afk, which breaks the rule spectador in Freezone.

magnetik commented 10 years ago

From melot.philippe on June 09, 2011 02:20:47

I don't think this error came from here, but if it is. I can't fix an error to the use of Xaseco with ManiaLive, none of this 2 software as been designed to work together.

magnetik commented 10 years ago

From mar...@hccst.com.br on June 09, 2011 16:16:32

The error is not caused by xaseco nor by working with maniazones xaseco. The error is caused by the command / afk that forces the player to spectator. When freezones attempts to force the player to spectator and the player is now as a spectator, the error occurs. The error occurs in maniazones and not xaseco. And if you are not trying to fix the error, who will?

magnetik commented 10 years ago

From Knutselm...@gmail.com on June 09, 2011 17:33:22

Just disable the forced spec function of /afk in your xaseco settings....

magnetik commented 10 years ago

From mar...@hccst.com.br on June 10, 2011 04:38:07

My server works perfectly and is in the Freezone. Some players know that using and enjoying the command / afk they can get around the rules. And if you guys do not want to take any action, why should I take one? It is a waste of time trying to help those who do not want!

magnetik commented 10 years ago

From melot.philippe on December 31, 2012 01:32:41

Status: Done