325
cave
148d

Admin: "Wait, I noticed unusual traffic."

Me: "What is it?"

Admin: "Looks like we have a bot here."

Me: "A bot? Didn't know we are so popular."

Admin: "It makes constantly login requests through our API, it already surpassed 600.000! I will ban it right away."

Me: "wait, that just sounds like my bot.."

Admin: "DUDE, WTF? ARE YOU SERIOUS?"

When there is bug, you don't know of, it can end up quite embarrassing.

Comments
  • 21
    Well, that needs fixing :D
  • 30
    That moment when you realize it's YOU causing the trouble 😅
  • 62
    This
  • 6
    what was the bug that lead your bot to do that?
  • 21
    @JoshBent There were two essential bugs, I knew them both before I even uploaded the bot, but I thought I fixed them already.

    The first bug happens on startup, that sometimes without reason it just opens two sockets, which is impossible because they would technically override each other. They then cause each other to crash and reopen forever. I fixed it by restarting the bot if this happens.

    The other bug was that sometimes the socket crashes while logging in, I'm not sure what causes the crash, so I fixed it by disabling the socket if no connection seem to be possible.

    Apparently one of the bugs was not fixed, most likely the second one. I think it is due to an invalid login token, which didn't get renewed, but then again, why would the bot crash instead of throwing an error?

    Hope you wanted such a detailed description. ^^'
  • 6
    @cave thanks for the detailled answer! 😊
  • 5
    @cave "sometimes without reason" = you need to investigate your code more and not accept these things, everything has a reason
  • 4
    @stevemk14ebr why? I thought I fixed both bugs, it worked perfectly fine while I tested it on my PC and I was quite happy with the solution I came up with. The problem is that the bot probably doesn't renew the login token correctly after it expires, but I hadn't taken a deeper look into it, because the admin told me that we'll change the whole API anyways and I will have to start from scratch again.
    Additionally it doesn't have to be my fault, that it opens two sockets for apparently no reason. I use a third-party library for websockets and it is really bad written, but the best library I found..
  • 3
    You rant yourself! That's new.. Haha
  • 3
    Better patch the ban function to make it impossible to ban the bot 😜
  • 3
    Hehe, seems your admin is doing a good job :)
Your Job Suck?
Get a Better Job
Add Comment