Internal Server error for all requests
-
Dear @admin @Moderator_1 @Moderator_2 @Moderator_3 @moderator_4 ,
I'm facing Internal server errors for client M85437 while making any request for placeorder, orderbook or positionbook.
I'm using the python smartApi library, and I tried re-logging, yet getting the same error.
here are the logs for your reference:
-
orderbook:
[E 250124 09:56:36 smartConnect:246] Error occurred while making a GET request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getOrderBook. Error: Internal Error. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getOrderBook, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '4b:1f:e0:38:06:ac', 'Accept': 'application/json', 'X-PrivateKey': 'NlUMc4oQ', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None} -
positions:
[E 250124 09:56:36 smartConnect:246] Error occurred while making a GET request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getPosition. Error: Internal Error. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getPosition, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '4b:1f:e0:38:06:ac', 'Accept': 'application/json', 'X-PrivateKey': 'NlUMc4oQ', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None} -
placeTrade:
[E 250124 09:30:13 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder. Error: Internal Error. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '4b:1f:e0:38:06:ac', 'Accept': 'application/json', 'X-PrivateKey': 'NlUMc4oQ', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'variety': 'NORMAL', 'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY30JAN2548600PE', 'symboltoken': '39480', 'duration': 'DAY', 'transactiontype': 'SELL', 'quantity': '45', 'producttype': 'CARRYFORWARD', 'ordertype': 'LIMIT', 'ordertag': '4945', 'disclosedquantity': '0', 'price': '512.0'}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
[E 250124 09:30:13 smartConnect:339] API request failed: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
I request you to kindly look into it and give me a resolution for the same.
Thank you.
Lookiing forward to a quick resolution. -
-
Hello, any update on the solution regarding this issue @admin @Moderator_1 @Moderator_2 @Moderator_3 @moderator_4 @bhaveshjain @batman1234 ?
-
@ash_0001 no that's not the error, since I re-logged in, also tried creating new api credentials, still the error persists, only for the M85437 id.
Oddly enough, the same code is working perfectly fine with other users.@admin @Moderator_1 @Moderator_2 @Moderator_3 @moderator_4 I request you to kindly look into this once, since the Internal Error error is still returning on the M85437 ID even after changing the API App credentials and re-authenticating.
-
I am also getting similar error but not for all requests.
for example:gainersLosers for PercOILosers and PercPriceLosers is working fine.
But gainersLosers for PercOIGainers and PercPriceGainers is giving the error
params = {
"datatype": "PercOIGainers",
"expirytype": "NEAR"
}print(login_obj.gainersLosers(params))
{'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
login_obj = user_details['obj']
params = {
"datatype": "PercPriceGainers",
"expirytype": "NEAR"
}{'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
-
@robotrade Mostly your token got expired Bearer