L
@admin Again today got same error
2021-06-16 14:50:02 : ERROR : [Angel:160] :
Traceback (most recent call last):
File "/root/AlgoTrading/common/Angel.py", line 139, in get_order_details
response_data = self.angel_obj.orderBook()
File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 318, in orderBook
orderBookResponse=self._getRequest("api.order.book")
File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 223, in _getRequest
return self._request(route, "GET", params)
File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 192, in _request
content=r.content))
smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 \xe2\x80\x93 Internal Server Error</h1></body></html>'
Error happened for all kind of requests...got this while fetching order book and login also..
Later after 1 min it was fine.
This is really causing issues... why is this happening??