@admin Now this has become every day's issue. Please provide a permanent solution.
Posts made by leena.1234
-
RE: API down as usual.
-
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>'
-
RE: Unable to log in using API. Errorcode AB1034
Yes, the account is migrated and API is created after migration.
Also, I changed the password and tried logging with new password but the Issue is still there -
Unable to log in using API. Errorcode AB1034
@admin
I am unable to log in to my account using API.Password for my account is correct and I am able log in to the Angel Broking web console using these credentials.
Still while using the same credentials and API key, log in to API is failed.
I am getting error AB1034. Please let me know why this issue is occurring and how should it be handled?
The error log is given below.
Thanks in advance.
-
Tick values are refreshing very slowly in websocket streaming.
Hello,
I am using SmartWebSocket() for Websocket streaming to fetch script feeds for both Indices ad Equities.It is observed that, there is a delay in tick values update and LTP is not getting reflected fastly so it's value is differing from the actual price on Angel Broking web console.
So there are 2 major questions-
- How can we sync with the current prices?
- Also what is the ideal delay time in tick values update as comparing to Angel Broking web console?
-
Error in login in - Internal server Error
@admin
I am facing an issue while log in using API.
Below is the response I am getting while generating the session.
This is the most frequent error faced while working with API.
Please guide.
Thanks in advance. -
RE: Unable to deal with " Invalid return character or leading space in header: X-ClientPublicIP "
Thank you for your response.
I'm using 3 client IDs in my application.
Client IDs are: L38845, I20415, M282515 -
Issue in getting responses from API
@admin
I am continuously getting error while login and fetching orderBook.
Due to this, I'm unable to place orders using my application.
What causes this error to occur? and how should I resolve this?Error is:
" Invalid return character or leading space in header: X-ClientPublicIP "Hoping for a speedy response.
-
RE: Problem in getting websocket data
@rajanprabu
Yes I'm using Python SDK for it. -
Problem in getting websocket data
@admin
After 10 - 15 minutes of connection, the websocket data is stopped and I'm unable to get ticks.
Please guide me why websocket connection is getting closed automatically? -
RE: internal server error
Similar error I am facing while fetching position and orderBook.