@admin
Yes, I am also facing this issue for a long time.
And since yesterday my order placement is affected by this.
Please this asap.
leena.1234
@leena.1234
Best posts made by leena.1234
-
RE: API down
Latest posts made by leena.1234
-
RE: API down as usual.
@admin Now this has become every day's issue. Please provide a permanent solution.
-
RE: API down
@admin
Yes, I am also facing this issue for a long time.
And since yesterday my order placement is affected by this.
Please this asap. -
Orders not getting placed.
@admin
Hello.
I am getting internal server error while placing orders today.
Due to this some of the orders were not placed, which caused a very big issue.
Have a look at this error log. -
RE: Error while connecting to smartAPI
I am facing similar error while logging into account using SmartAPI.
After multiple attempts login is successful but other API calls are getting interrupted by this json.decoder.JSONDecodeError error. -
RE: Internal server error
@admin
The error has occurred yesterday only.
When this error has been solved?
Also let me know if I need to change anything in current API or scripts?detailed error log is as below -
ERROR:2021-08-10 13:21:20,027:MainThread:exception in get_rms_limit() 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>'
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\smartapi\smartConnect.py", line 188, in request
data = json.loads(r.content.decode("utf8"))
File "C:\ProgramData\Anaconda3\lib\json_init.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "order.py", line 237, in get_rms_limit
File "C:\ProgramData\Anaconda3\lib\site-packages\smartapi\smartConnect.py", line 327, in rmsLimit
rmsLimitResponse= self._getRequest("api.rms.limit")
File "C:\ProgramData\Anaconda3\lib\site-packages\smartapi\smartConnect.py", line 223, in _getRequest
return self._request(route, "GET", params)
File "C:\ProgramData\Anaconda3\lib\site-packages\smartapi\smartConnect.py", line 191, in _request
raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
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>' -
Internal server error
@admin
I am facing issues while using API
Internal server error occurs almost on an alternative day.
And that is interrupting my algorithm while giving API calls for order placement, RMS limits, and so on.Please suggest, why this error is occurring? and how it can be handled in code?
Below I am attaching error traceback-
INFO:2021-08-10 13:24:11,226:MainThread:exception in place_new_orders : 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>'