In the midrash Rabbah for Bereishis 35:2, as well as other tradition, it is noted that there were no rainbows in the generation of Rashbi because the generation was completely righteous.
However, our tradition teachesI was taught that all the students of Rabbi Akiva, but five including Rashbi, were killed because of their lack of kavod for each other.
How do these facts square up?