This is an issue that has been answered before in this thread, and I think I now have a fairly good idea of what is happening which I will try to explain, but I have been so far unable to resolve it by following the advice given during previous occurrences.
- Operating system: OS X, can also occur on iOS
- Web Browser: Firefox
- Have you tried other browsers? Can occurs on Safari
- When did this problem start? Wednesday this week
- Your PS username: CringeMeta
- And of, course, your problem: "PS is under heavy load and cannot accommodate your connection right now." error
This started occurring on Wednesday of this week. When I saw the error, I thought Showdown just had too many users concurrently connected or something, so after waiting a couple of hours, trying and failing again, I left it. The next day (Thursday), I briefly was able to log on using my phone at work and thought it was resolved. Then when I got home on Thursday evening the error occurred again.
On Friday morning, I tried to log in at home again from my phone; the error continued to occur. At this point, I searched "heavy load" in the Pokemon Showdown server source repository and realised that, contrary to what the error message implies about it being a temporary problem with the server's hosting, I had most likely been somehow IP banned for 'connection flooding'. I tried and succeeded in connecting to Showdown by 4G instead of Wifi which seemed to confirm it.
I run a bot on Showdown (username: Iolanthe) from a separate PC with the same IP which I realised was most likely what was considered to be flooding the connection, by trying and failing to reconnect during the IP ban. Still, this is a kind of catch 22 situation that doesn't explain how the ban was initiated; if it had been able to connect in the first place, it would not have been initiating a high frequency of further connection requests, and I have operated this bot in basically the same way for around a year and a half without encountering this problem before. If I had to guess, at what happened here, after the server restart this week, maybe Showdown was reinitiated in some unusual, piecemeal way in which, for a period, it was possible for users to pass through checkIpBanned without actually being able to log in, racking up a large amount of connection requests(???)
Anyway, I turned off my bot - and I can and will adjust the reconnection speed so that it shouldn't trigger the connection flood condition if this situation occurs again. I went to work, came back, tried to login into Showdown and still got the 'heavy load' error. I searched for somewhere to report this situation and found this thread. Several users previously reported similar things and received the advice to wait a few hours, so I left it again and went to sleep. However, today (over 24 hours after turning off my bot) the error is still occurring.
Thanks in advance for any help.
EDIT: It has now cleared. In case other users encounter this problem in future, it seems to take at least 48 hours to clear. Currently it seems like the maximum number of connections a particular IP is allowed to make is
499 in a 30 minute period.