self.w3.flashbots.cancel_private_transaction(tx_hash)
==>
502 Server Error: Bad Gateway for url: https://relay.flashbots.net/
self.w3.flashbots.cancel_private_transaction(tx_hash)
==>
502 Server Error: Bad Gateway for url: https://relay.flashbots.net/
Could you please check your configurations and test again. are you using some proxy internally trying to connect ? https://relay.flashbots.net/
seems working fine.