Page 1 of 1

Response too large, Dedicated Server API (Gbx Remote) (PHP)

Posted: 18 Sep 2016, 10:50
by toffe
Please take a look at the github issue asap as it's crashing at large cups:

https://github.com/maniaplanet/dedicate ... /issues/20

Re: Response too large, Dedicated Server API (Gbx Remote) (P

Posted: 18 Sep 2016, 11:08
by Palteza
Nice find

Re: Response too large, Dedicated Server API (Gbx Remote) (P

Posted: 18 Sep 2016, 11:37
by The_Big_Boo
There are 2 possibilities here :
- The maximum response size of 4MB is wrong because the dedicated server is actually able to send larger responses, then the value should indeed be increased. Maybe you could try changing it at the top of GbxRemote.php and see how it goes.
- The maximum response size is right, then eXpansion shouldn't crash and handle the exception nicely (and it should anyway), by asking the ranking by chunks (there are optional parameters in the method for this).

Re: Response too large, Dedicated Server API (Gbx Remote) (P

Posted: 18 Sep 2016, 11:40
by toffe
The_Big_Boo wrote: - The maximum response size of 4MB is wrong because the dedicated server is actually able to send larger responses, then the value should indeed be increased. Maybe you could try changing it at the top of GbxRemote.php and see how it goes.
Just changed, we will see.
The_Big_Boo wrote: - The maximum response size is right, then eXpansion shouldn't crash and handle the exception nicely (and it should anyway), by asking the ranking by chunks (there are optional parameters in the method for this).
Could be possible, then reducing the call with few players instead of every player (instead of getCurrentRanking(-1, 0)) instead so it won't get such big responses.

Anyway, I increased it for now as an easy fix that hopefully fixes this issue and is stable again during cups.

Re: Response too large, Dedicated Server API (Gbx Remote) (P

Posted: 18 Sep 2016, 12:42
by oliverde8
Hi,

This is quite critical, working on doing it in chunks in eXpansion.

https://github.com/eXpansionPluginPack/ ... issues/225

Re: Response too large, Dedicated Server API (Gbx Remote) (P

Posted: 26 Sep 2016, 08:17
by magnetik
Let's continue the discussion in the bug directly.