2026-06-08 08:14:48,366 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 08:29:50,330 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 10:15:33,729 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 10:30:36,499 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 10:45:38,227 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 11:00:38,972 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 11:15:40,868 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 11:30:43,605 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 11:45:46,292 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 12:00:46,984 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 12:15:50,859 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 12:30:52,773 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 12:45:54,790 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 13:00:55,530 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 13:15:56,122 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 13:30:56,802 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 13:45:57,455 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 14:00:58,197 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 14:16:02,898 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878) 2026-06-08 14:31:04,480 - discom_delhi_scraper - ERROR - [MAIN_LOOP_EXCEPTION] Error in main loop: Unterminated string starting at: line 4492 column 17 (char 122878) Traceback (most recent call last): File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 559, in main path = append_snapshot_to_history(payload, cycle_failures=cycle_failures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 455, in append_snapshot_to_history hist = _load_history() ^^^^^^^^^^^^^^^ File "/var/www/html/uat-climakosh-api/public/climakosh-python-script-production/discom_delhi.py", line 430, in _load_history return json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Unterminated string starting at: line 4492 column 17 (char 122878)