502 Bad Gateway - Python-Binance API

I created a algo bot with python-binance api. I go following error while I get status of order which is placed.

My Code :

odata = client.futures_create_order(symbol=pair,type='LIMIT',timeInForce='GTC',price=tradeval,side=bsside,quantity=lot,recvWindow="60000")
oid = odata['orderId']
while True:
    bstatus = client.futures_get_order(symbol=pair, orderId=oid)['status']
    if bstatus=="FILLED":
        op = "start"
        break
    time.sleep(0.75)

My Error :

Traceback (most recent call last):
  File "C:\Users\Admin\Desktop\BinanceBot\bot.py", line 123, in <module>
    bstatus1 = client.futures_get_order(symbol=pair, orderId=oid1, recvWindow="60000")['status']
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 6007, in futures_get_order
    return self._request_futures_api('get', 'order', True, data=params)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 339, in _request_futures_api
    return self._request(method, uri, signed, True, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 315, in _request
    return self._handle_response(self.response)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 324, in _handle_response
    raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=0): Invalid JSON error message from Binance: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
 Sorry for the inconvenience.<br/>
Please report this message and include the following information to us.<br/>
Thank you very much!</p>
<table>
<tr>
<td>URL:</td>
<td>http://testnet.binancefuture.com/fapi/v1/order?orderId=3240883855&amp;recvWindow=60000&amp;symbol=BTCUSDT&amp;timestamp=1666503841364&amp;signature=4c54c85698dac1bc8a32a3921e3a42483ad0eabe352a80a1de106231d5745b60</td>
</tr>
<tr>
<td>Server:</td>
<td>tk_prod_dispatcher_pg</td>
</tr>
<tr>
<td>Date:</td>
<td>2022/10/23 05:44:02</td>
</tr>
</table>
<hr/>Powered by Bengine<hr><center>tengine</center>
</body>
</html>

Please try again, it works fine for me now.