Closed GoogleCodeExporter closed 8 years ago
Can you put some debug output in the RestClient to see the exact moment of the
Exception throw ?
Original comment by melot.philippe
on 23 May 2011 at 8:56
Sure, no problem.
Please tell me how to proceed.
Original comment by Knutselm...@gmail.com
on 23 May 2011 at 11:06
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
Original comment by melot.philippe
on 23 May 2011 at 11:19
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}
Original comment by Knutselm...@gmail.com
on 24 May 2011 at 1:39
I don't think it came from $response but before, try to var_dump the exception
in the ManiaLib\Rest\Client.
Original comment by melot.philippe
on 24 May 2011 at 2:15
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.
- in
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLib/Rest/Cl
ient.php on line 213
- Stack: #0
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLivePlugins
/Freezone/Freezone/Plugin.php(240): ManiaLib\Rest\Client->execute('POST',
'/freezone/live/', Array)
#1
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Featur
es/Tick/Event.php(26):
ManiaLivePlugins\Freezone\Freezone\Plugin->onTick()
#2
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Event/
Dispatcher.php(52):
ManiaLive\Features\Tick\Event->fireDo(Object(ManiaLivePlugins\Freezone\Fr
eezone\Plugin))
#3
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Featur
es/Tick/Ticker.php(32):
ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Features\Tick\Event
))
#4
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Applic
ation/Event.php(36): ManiaLive\Features\Tick\Ticker->onPreLoop()
#5
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Event/
Dispatcher.php(52):
ManiaLive\Application\Event->fireDo(Object(ManiaLive\Features\Tick\Ticker
))
#6
/home/tmservers/servers/fullspeed/ManiaLive217/libraries/ManiaLive/Applic
ation/AbstractApplication.php(144):
ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Application\Event))
#7
/home/tmservers/servers/fullspeed/ManiaLive217/bootstrapper.php(82):
ManiaLive\Application\AbstractApplication->run()
#8 {main}
Original comment by Knutselm...@gmail.com
on 24 May 2011 at 10:43
can you try to expose the $this just before the call and just after (in the
client Class I mean).
Original comment by melot.philippe
on 25 May 2011 at 8:23
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
Original comment by Knutselm...@gmail.com
on 25 May 2011 at 10:44
Reply on the forum ;)
Original comment by melot.philippe
on 26 May 2011 at 8:30
This error is caused by the use of xaseco command /afk, which breaks the rule
spectador in Freezone.
Original comment by mar...@hccst.com.br
on 9 Jun 2011 at 1:00
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.
Original comment by melot.philippe
on 9 Jun 2011 at 9:20
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?
Original comment by mar...@hccst.com.br
on 9 Jun 2011 at 11:16
Just disable the forced spec function of /afk in your xaseco settings....
Original comment by Knutselm...@gmail.com
on 10 Jun 2011 at 12:33
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!
Original comment by mar...@hccst.com.br
on 10 Jun 2011 at 11:38
Original comment by melot.philippe
on 31 Dec 2012 at 9:32
Original issue reported on code.google.com by
Knutselm...@gmail.com
on 22 May 2011 at 2:13