Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 136 forks source link

Can't get server data #683

Closed starcevpro closed 1 year ago

starcevpro commented 1 year ago

I can’t get data about servers, when executing a command, I get an empty list of servers without waiting, when I change $gameQ->setOption('write_wait', 50000); I get an error: GameQ\Protocols\Source::processResponse response type 'A' is not valid

my response image

PHP 8.1 Laravel 9 Windows 10 local dev with laragon

46.174.50.145:27016 46.174.50.145:27019 I tested this servers in SourceQuery, and this working.

starcevpro commented 1 year ago

I'm edit Native.php on 193 line

from if ($streams === false || ($streams <= 0)) { to if ($streams === false || ($streams < 0)) {

and all work, please fix this.

Austinb commented 1 year ago

Both provided servers work as is without any change to any files as currently available in the v3 branch. Please try using the v3 branch directly and not the release as it is a little bit behind. Without any other reasons there should be no need to modify this file.

My best guess at this point is your requests are getting dropped or interrupted on the destination side for any number of reasons. If other people are having the same issue with these 2 servers as well as others we can look into it a bit more.