AB1010: Invalid Session or Session is Expired Please Re-login
-
@StocksDeveloper Happened the same with me, we rely on the Orderbook endpoint which did not return any response even when trades were being taken into account. Quite annoying as clients complaint and don't understand these issues.
-
@StocksDeveloper another error...
TTVP1004:210901000065148:Error from Angel: Internal server error.. Angel error code: AB2000, Message: 172
-
@yash12392 yes, normally throughout the trading day the number of orders or positions in an account always stay the same or increase. They can never decrease.
But read order or position response is returning lesser or zero number of rows than what was received just before.
Very strange.
-
Hi @lakshmi_73 @StocksDeveloper @yash12392 this issue has been resolved.
-
@admin thanks for the update.
what about less or zero records coming in orders/positions response? Is that also resolved?
-
HI @StocksDeveloper said in AB1010: Invalid Session or Session is Expired Please Re-login:
what about less or zero records coming in orders/positions response? Is that also resolved?
We will update you on this part asap. -
@StocksDeveloper Too many internal server errors in the logs.
STGN1003 @ 12:52:39
TZ7990 @ 12:52:38HTTP Status 500 – Internal Server Error
This is totally unacceptable.........horrible experience guys.
-
HI @StocksDeveloper We regret the inconvenience we will update you asap.
-
@admin No update yet, is this resolved?
-
HI @StocksDeveloper This issue has been solved.
-
@admin It looks like we are performing testing duties for you for free.
Why were the changes not tested before going live?
Who was responsible for this?
What action have you taken?
Absolutely bad experience from such a big broker. The worst reliability of all brokers we work with. Do something about it.
-
when will clear?
-
@Sam4173 said in AB1010: Invalid Session or Session is Expired Please Re-login:
will
@admin
Facing same -
Facing this issue again.
@admin when would this be cleared? -
@mihirshah2500 what error r u getting
-
@T167171 Invalid Session or Session is Expired Please Re-login.
Happening with rmsLimit() api. -
I tried multiple times by generating new sessions each time but still faile
- Code to generate session which works fine
angel_api_key = os.environ.get("ANGEL_API_KEY") angel_totp_key = os.environ.get("ANGEL_TOTP_KEY") angel_client_id = os.environ.get("ANGEL_CLIENT_ID") angel_password = os.environ.get("ANGEL_PASSWORD") angel_toptp = pyotp.TOTP(angel_totp_key).now() obj = SmartConnect(api_key=angel_api_key) #print("totp is ", angel_toptp) session = obj.generateSession(angel_client_id, angel_password, angel_toptp) refreshToken = session['data']['refreshToken'] feedToken = obj.getfeedToken() userProfile = obj.getProfile(refreshToken)
- Order place API fails
order_params = { "variety": "NORMAL", "tradingsymbol": "HAVELLS-EQ", "symboltoken": "9819", "transactiontype": "BUY", "exchange": "NSE", "ordertype": "MARKET", "producttype": "INTRADAY", "duration": "DAY", "quantity": 1 } obj.placeOrder(orderparams=order_params)
with o/p:
1 order_params = {
2 "variety": "NORMAL",
3 "tradingsymbol": "HAVELLS-EQ",
(...)
10 "quantity": 1
11 }
---> 12 obj.placeOrder(orderparams=order_params)File ~/.local/lib/python3.10/site-packages/smartapi/smartConnect.py:299, in SmartConnect.placeOrder(self, orderparams)
296 if params[k] is None:
297 del (params[k])
--> 299 orderResponse = self._postRequest("api.order.place", params)[
300 'data']['orderid']
302 return orderResponseTypeError: 'NoneType' object is not subscriptable
-
-
@T167171 Same issue happening
-
@rganapthy6
still hapening?