For unknown reasons, there is often an error: "Failed to receive challenge.", but if I use the server based on Steadfast2, the server works well. I've tried many libraries and I get this error only with PM-MP.
Using library: https://github.com/xPaw/PHP-Minecraft-Query
I found the similar issue in this repository: https://github.com/xPaw/PHP-Minecraft-Query/issues/129
I use a dedicated server MC-16-V (OVH) and the site is on the same server as pocketmine.
I think because its library has designed for Minecraft : Java Edition and PocketMine dont support it.
that's funny because it's designed to be compatible........
@zKoz210 if you can provide further reproducing information that would be great.
I can't give accurate information to reproduce the problem. Will any dumps be useful to you? This problem occurs intermittently, so it is extremely difficult to determine a specific sequence.
Try to get online several times in a row with
SimplexLand: sxland.ru:19132 (Steadfast2)
and with
PocketLife: pocketlife.ru:19132 (PM-MP)
and more than likely, with PocketLife you will get such an error.
that library's code is killing my brain cells... do you have any alternatives that also don't work?
it's no surprise the first library gives you errors... it tries to ping over TCP, so it's more likely you're getting a response from RCON than anything else...
@dktapps It is strange that PM-MP has it offline and another server is online when I have both RCON and Query enabled
Okay, but the second one doesn't work either.
as for the second library, pocketlife does not respond to queries at all, so please check that you actually have query enabled and that the IP address is not banned.
Hmm... But this library returns online perfectly.
https://github.com/pavel-grom/php-minecraft-pe-query


that's because that library does not use Query, it uses standard MCPE pings.
In that case, I don't know what to do, do you have any ideas?
Enable debug output in pocketmine.yml (in case RakLib is doing something it shouldn't) and add some debug in here to see if the server actually gets the packets: https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/network/query/QueryHandler.php#L77
I have the same problem with xPaw's library. When library outputs "Failed to receive challenge" debug output is empty.
I've been using xPaw's library for a while now and it works fine for me, here's an example:
https://api.nethergames.org/query.php?ip=mm.nethergames.org&port=19132
(Server running PMMP)
I'm using the library from around a year ago, not sure if the latest commit in his repository may change anything
@k3ithos so funny

@dktapps I'll try to check again with your changes during the day.
Lmao have you conisdered query is disabled?
https://api.nethergames.org/query.php?ip=play.skyblockpe.com&port=19132
Here I get the answer, this is some nonsense

Does this work for you? https://gist.github.com/Muqsit/e338435ed3f054f10d81a04bb5a0ec2a
It works, I got an answer

@zKoz210 server froze and didn't respond to queries then, try again now :)
@zKoz210 try with it https://github.com/frago9876543210/mc-protocols

@Frago9876543210 The point is not receiving data, and the decision of problems of compatibility libraries PC and BE. I do not understand the reason why this is happening
I don't think anyone previously considered UDP reliability issues. I've had guys run tests and there is intermittent lacks of responses no matter what server you try to query, because UDP doesn't try to redeliver in case of packet loss.
This is plausibly (and highly likely) the real explanation, and there is no reason why PocketMine would be causing such a bug, so I'm going to close this.