Rainbow bonus quest glitch

Sometimes during the rainbow bonus quest all enemies will stop appearing during quest and not allow you to finish or they wont show up at all and then the timer expires. And you end up wasting bonus keys.

that is not a glitch is a desync, something happened with your connection like a peak in the signal and your client desyncronized with the server because of that you end with situations like this.