Update index_history with json payload as per the new NSE API Server by mraj602 · Pull Request #47 · aeron7/nsepython
Unfortunately the issue still persists with this patch. Still getting the
KeyError 'd'with bothnsepythonserverandnsepython.The issue is from the server. Even the request on nifty indices website returns no result. Might be a temporary issue. Hopefully, NSE will not change its structure again.
yeah, it seems they made some changes which broke their endpoint.
{
"Message": "Object reference not set to an instance of an object.",
"StackTrace": " at System.Data.RBTree`1.Successor(Int32\u0026 nodeId, Int32\u0026 mainTreeNodeId)\r\n at System.Data.RBTree`1.RBTreeEnumerator.MoveNext()\r\n at Newtonsoft.Json.Converters.DataTableConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)\r\n at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)\r\n at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)\r\n at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)\r\n at IISL.Backpage.getHistoricaldatatabletoString(String cinfo) in D:\\NseIndices\\Temp\\March07_2024_LiveBackup\\Nifty Indices New\\Backpage.aspx.cs:line 420",
"ExceptionType": "System.NullReferenceException"
}