ServerQuery banned for flooding // How to connect a Bot without flooding (524 client is flooding)

Help I’m trying to connect a bot

creating a new password error
old password is also an error
I want to connect this bot

connecting...
18:16:31.385 [[TeamSpeak-3-Java-API] SocketReader] DEBUG com.github.theholywaffle.teamspeak3.SocketReader - TS3 command error: {msg=connection failed, you are banned, extra_msg=you may retry in 393 seconds, id=3329}
18:16:31.398 [[TeamSpeak-3-Java-API] SocketReader] ERROR com.github.theholywaffle.teamspeak3.SocketReader - Connection closed by the server.
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: com.github.theholywaffle.teamspeak3.api.exception.TS3CommandFailedException: A "login" command returned with a server error.
>> connection failed, you are banned (ID 3329): you may retry in 393 seconds
    at com.github.theholywaffle.teamspeak3.api.CommandFuture.checkForFailure(CommandFuture.java:415)
    at com.github.theholywaffle.teamspeak3.api.CommandFuture.getUninterruptibly(CommandFuture.java:356)
    at com.github.theholywaffle.teamspeak3.TS3Api.login(TS3Api.java:3000)
    at de.lufen.TeamspeakBot.connect(TeamspeakBot.java:248)
    at de.lufen.TeamspeakBot.main(TeamspeakBot.java:105)
    ... 8 more
18:16:31.403 [pool-1-thread-1] ERROR com.github.theholywaffle.teamspeak3.api.reconnect.DisconnectingConnectionHandler - [Connection] Disconnected from TS3 server

is the bot banned?

1 Like

Always when I connect it is always banned

You need to make sure, you don’t have any bans

Then you should disable the flood protection for the bot so it can operate normally. b_client_ignore_antiflood (set the permission temporarily for guests, then give the bot a specific bot group and remove the permission from the guests) // or give the bot client permission

Where can I see the bans?

Ban List

There are no locks.
Login and password required qwery

query {
    user = "serveradmin"
    password = "*****"
    virtualServerId = 1
    serverIp = "********"
    serverPort = "10011"
    nickName = "bots"
    baseChannelId = "1"
    botAdminGroupId = "6"
    debugMode = false
}

Did you disabled the flood protection?

connecting...
19:05:51.754 [[TeamSpeak-3-Java-API] SocketReader] DEBUG com.github.theholywaffle.teamspeak3.SocketReader - TS3 command error: {msg=connection failed, you are banned, extra_msg=you may retry in 458 seconds, id=3329}
19:05:51.765 [[TeamSpeak-3-Java-API] SocketReader] ERROR com.github.theholywaffle.teamspeak3.SocketReader - Connection closed by the server.
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
19:05:51.768 [pool-1-thread-2] ERROR com.github.theholywaffle.teamspeak3.api.reconnect.DisconnectingConnectionHandler - [Connection] Disconnected from TS3 server
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: com.github.theholywaffle.teamspeak3.api.exception.TS3CommandFailedException: A "login" command returned with a server error.
>> connection failed, you are banned (ID 3329): you may retry in 458 seconds
        at com.github.theholywaffle.teamspeak3.api.CommandFuture.checkForFailure(CommandFuture.java:415)
        at com.github.theholywaffle.teamspeak3.api.CommandFuture.getUninterruptibly(CommandFuture.java:356)
        at com.github.theholywaffle.teamspeak3.TS3Api.login(TS3Api.java:3000)
        at de.lufen.TeamspeakBot.connect(TeamspeakBot.java:248)
        at de.lufen.TeamspeakBot.main(TeamspeakBot.java:105)
        ... 8 more

?

You can try to edit the query_ip_whitelist.txt and add your IP from where the Bot should connect.

If it still does not work then you should try it in 1/2 hours again and see if the Flood Protection already expired

the bot connects from the same un as the server

then use 127.0.0.1

Everything works, thank you

1 Like

I have a query client which has both a group with b_client_ignore_antiflood on true, and seperately as a client permission as well - Yet, when I try to move multiple clients in the same instance I get returned error 524 / client is flooding after one or two clients.

This used to work fine before, and based off my memory, the only thing that changed from the before state is that eventually I switched to not using a license.

I have also tried to greatly increase the servers antiflood settings to no avail.

Am I missing something?

I would say, just add the IP address of your bot to the query_ip_whitelist.txt file of the TS3 server (you will find it in the TS3 directory) and wait up to 10 minutes after changing that file. Don’t forget to add an empty line at the end of the query_ip_whitelist.txt.

When i use
$ts3->getViewer(new TeamSpeak3_Viewer_Html(‘’, ‘’, “data:image”));
throw the error QueryError: 524 client is flooding (please wait 1 seconds)
image

just whitelist the ip from the query u are using, also give the query rank the “b_client_ignore_antiflood”