Have not compared if its the identical data thats being repeated..during closed market, on_ticks shouldn't return anything.. or at best the last data once only?
Is it continuously happening? If not, then you need to handle this network time-out exception at your end and make the same request again with a few ms delay.