-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord, duplicating clan channels at reboot #436
Comments
Can I ask you to enable SimpleClans' debug and try to reproduce your issue? |
Are you running SimpleClans in 3 servers? All connected to the same Discord server? |
Nope, just 1 server.
Yeah sure, its already on from the last issue! haha https://gist.github.com/TomLewis/bddcda8ec67c035aa4457b134f1b3153 And boot https://gist.github.com/TomLewis/7036d0a2b38d318fa595dd1488a675db |
You told us those discord channels were created on boot, java.lang.IllegalStateException: Duplicate key ee (attempted merging values <#1092075569082015764> and <#1269260858488389694>) Which means SimpleClans somehow passed through 2 layers of protection: I am going to add some more debug messages to this process at #437. |
Weird! Sounds good to me, If you add debug messages at boot at every stage to output to console, then I can wait for my reboot and see what its checking for what and I can report back, then we can see if its doing things at the right time! Does it cache these channels from discord or is it doing a fresh check each reboot? Because these discord channels shouldnt ever be touched outside of this plugin by anything or anyone, silly question but shouldnt each discord channel have an ID thats unique? then each clan can just have that as their discord channel ID, and not its name being unique, that solves the bug where if there is another channel created its not going to fully break. I just dont know how you solve bad API calls back from discord, if they are temp down, or if theres some sort of issue in the pipeline if its checking for a channel to see if it exists already and keeps trying.. |
It was made on purpose. Storing Clan <-> Discord ID in a separated file or in
It actually doesn't happen much, but even so, simple server restart should fix any troubles. |
if you have enabled
However, if the clan was already created, it will return nothing to the console. |
Describe the bug
I had this bug previously, #434
And it was disagnosed as Clan channels duplicating along with simpleclans needing to be the latest dev build.
After reboot yesterday, SimeplClans randomly decided to create a bunch of duplicates for a clan "ee", nothing has changed on the server or discord, it just decided to do it at reboot.
Theres a bug somewhere thats duplicating channels, and in this case its created 3 all at once for one clan, this in turn breaks ALL of the discod chat for every single clan, not just this clan.
Can we please get some logic thats checking for existing channels, there must be some sort of API issue with discord that happens randomly, and then you tell it to make new channels over and over until it can check it exists, and then theres 3 or 4 etc.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To not do this
Software (please complete the following information):
The text was updated successfully, but these errors were encountered: