Page 1 of 1

Problem with 'Servers' request

Posted: 10 Mar 2016, 16:42
by Neon
Hello,
i'm working on new website with Web Services and i have some problems with it. I'm trying request more than 100 servers but i can't. It give me an error with Bad Request. "100 works and 101 or more isn't working" I have got same problem on https://ws.maniaplanet.com. Can you help me resolve this? Thank you.

Code: Select all

$service = new \Maniaplanet\WebServices\Servers($user, $pass);
$list = $service->getFilteredList(
        array(
            'length'=>101 
            )
        );
Fatal error: Uncaught exception 'Maniaplanet\WebServices\Exception' with message 'Bad Request' in C:\XAMPP\htdocs\ServerStatus\Status\include\main\libraries\Maniaplanet\WebServices\HTTPClient.php:369

Re: Problem with 'Servers' request

Posted: 11 Mar 2016, 11:38
by zocka
As I don't find it documented anywhere, I can only assume they sat a length limit of 100 (as some other endpoints are throwing an error for greater length values as well).
It seems you have to send multiple requests with fitting offset values and maybe think whether you really need so much data in one go or if some matching pagination would be benefitial.