Theres the repeat yourself and sending too fast but the third is exceeding the posted rate limits which either, drops or disconnects it doesn’t raise an error.
Website is a different interface to script connections I believe which is probably why it works in the browser and not via connection. And this potentially a different rate limit pool
But this is off in the mystery shadow realm of weirdness.