"TypeError: 'NoneType' object is not subscriptable"

API stops sending the data after a while of running the program in python giving this Error: "TypeError: 'NoneType' object is not subscriptable"

Checking the logs gives this information: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None))

1683780262042 :: history :: {'symbol': 'NSE:M&MFIN-EQ', 'resolution': '10', 'date_format': '1', 'range_from': datetime.date(2023, 3, 12), 'range_to': '2023-05-11', 'cont_flag': '0'} :: 1683780262042 :: response

ERROR : 'dict' object has no attribute 'json'

2 replies