@admin @Moderator_1 @Moderator_2
Hi Folks,
Please check the below issue:
I have used the individual order status API to fetch the order status after firing an order. It was working fine, but it threw the following error for one of them:

The error was: [E 240208 15:03:27 smartConnect:479] Error occurred in ind_order_details: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Note that the actual order got executed - order ID - 240208002143933.
Kindly help in understanding the root cause to avoid such issues in the future.
Here is the the code block used by me:
response = smartApi.placeOrderFullResponse(orderparams)
print(response)
if response['message'] == "SUCCESS":
uniqueOrderID = response['data']['uniqueorderid']
while True:
orderResponse = smartApi.individual_order_details(uniqueOrderID)
if orderResponse['data']['orderstatus'] == 'complete':
orderStatus = orderResponse['data']['orderstatus']
orderID = orderResponse['data']['orderid']
avgPrice = orderResponse['data']['averageprice']
logger.info(transactionType+" avgPrice of "+tradingSymbol+": "+str(avgPrice)+" order_ID: "+str(orderID)+" "+orderStatus)
break
if orderResponse['data']['orderstatus'] == 'rejected':
break
time.sleep(0.1)