"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’

Hey Sai,
It seem the API server got timed out causing the error
you can use try except to handle such exception for now a new patch for SDK will be rolled out soon to fix this bug so it does not break/exit the code in such scenarios.

i am getting this error now? is this issue reoccured?