[Solved] Tronado: Exception: Cannot redirect after headers have been written

This error is because: after the finish()function, it was called redict. It will be a mistake.

Solution:

Yes, by if self._finished:judging whether the finish()function has been called.


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *