HTTP Status 500 – Internal Server Error
-
Please let us know what happened today, similar error had happened few days back as well.
Error:
<title>HTTP Status 500 – Internal Server Error</title>
Many clients are affected.
Please investigate and have a permanent fix, this is affecting your reputation as a Broker.
Thanks,
Stocks Developer -
@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?? -
@admin ok thanks :)
-
Hi @lakshmi_73 we will update you the reason for this after coordinating with the team.
-
@admin Thanks admin... But why this issue happened?
If we know reason we can improve our code to defend this error. -
HI @lakshmi_73 we have fixed this now.
-
Traceback (most recent call last):
File "/root/AlgoTrading/common/Angel.py", line 125, 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>'@admin getting this error continuously(more than 5mins) when I tried to fetch order book! It got solved after I restart my program. What is the reason for this??
P.S: This error affected all my algos! Please resolve this and provide the reason for this issue.. so that we can include such exceptions in our code!
@StocksDeveloper @c_harish -
@admin said in HTTP Status 500 – Internal Server Error:
network
Thank you @admin ... appreciate you taking the responsibility and tackling the problem head on.
Please keep us updated about the permanent fix and measures taken to avoid recurrence of this issue.
-
Hi @StocksDeveloper we were going through the network issues our team has fixed it. Please let us know if you are still facing issue.
-
@StocksDeveloper @admin
we are also facing this and is happening very often in past few weeks. we are frustrated.