#Taking forever to send message after a set of steps

1 messages · Page 1 of 1 (latest)

fresh abyss
#

Hi! Currently I'm making a small bot for people to race on how fast they can count binary numbers, I've included all of the main.rs which includes all the discord code but I can also upload it all to github if needed. There is also a screenshot of the steps and a recording of the logs attached as well.

For some reason, whenever I type !guess, guess correctly and then type !guess I end up having it so the 2nd !guess takes forever to send the message. This does not happen if I just call !guess twice without guessing.

Currently using 0.16.0-rc.1 but I think I had this on 0.15.1.

Any help with this? It's driving me a bit nuts

near latch
#

(I will look at this a bit later today when I have some time)

near latch
#

Could I get you to send a log of two !guess in a row

#

Also when you say forever, do you mean like a long time or that it never happens?

near latch
#

@fresh abyss I can reproduce on rc.1, but not if I use main

#

It fails because the call to handle_pairs errors, but because you don't do anything with the return value you don't see it.

#

It errors because of some rate limiting error, which I am unsure of why happens.

#

But it does not happen on the latest git, but I am also unsure of why it does not happen there so I will look a bit more into it.

fresh abyss
#

I'll try it on latest git now

fresh abyss
#

After a while, on latest git I can call the command after a delay, but the previous time out still errors and prevents the program from being shut down nicely (I also added traces for any errors)

#

But I also get that on 0.16.0-rc.1

#

So I can't really see any differences myself between the versions

near latch
#

Okay that is odd.

#

It suddenly worked after I changed to use git, that may just been completely random, though I am not sure about that.

proper shadow
#

I'm curious why you're not erroring due to the default 10s twilight-http::Client timeout