ServerQuery sometimes returns an empty result instead of data

Hello,

Since we updated our server to 6.0.0-beta13 (it’s on beta13.1 now, Linux, Ubuntu 24.04), ServerQuery sometimes returns an empty result instead of actual data. There’s no error, the response is just empty. We connect over SSH query on port 10022 using the Python TS3 library (2.0.0b3). We didn’t have this on beta12.1.

We have a small query bot that gives users a colored circle next to their name depending on their server groups. Every second it goes through clientlist, gets each client’s database id with clientinfo and then calls servergroupsbyclientid. Every now and then servergroupsbyclientid comes back empty for a user who definitely has groups. The bot thinks the user has no roles, gives them the default white circle, and a second later, when the response is correct again, takes it away:

30.10.2026 23:18:10 client 'User'(id:1337) was added to servergroup '⚪'(id:66) by client '🎨 Helper'(id:1)
30.10.2026 23:18:12 client 'User'(id:1337) was removed from servergroup '⚪'(id:66) by client '🎨 Helper'(id:1)

The user’s groups never actually changed. On top of that, every add and remove plays a sound, which is pretty annoying for people on the server.

We also have a script that creates server groups with servergroupcopy, and the same thing happens there. Every now and then a call returns an empty response with no sgid, even though the group is actually created and shows up in servergrouplist right after. For now we just retry and look the group up by name, but it looks like the same problem.

Could you please take a look? I’m happy to send more logs if that helps.

Thanks!

Is this issue reproducible using a standard Query connection?

If not responses from an automated system aren’t always particularly helpful when it comes to debugging. This would also help us determine whether the issue is actually on our side or caused by faulty bot logic.

Thanks for the quick reply!

I tried to reproduce it over a plain SSH Query connection without the TS3 library: 1000 servergroupsbyclientid requests in a row, and every response came back correct with no empty results. So it looks like the problem is on our side, most likely in the old Python TS3 library (last updated in 2019) not handling something in the newer server versions. I’ll rework our script and add a check for empty responses.

Sorry for the false alarm, and thanks again!