2026-06-08 14:44:27,343 - 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:59:28,943 - 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 15:14:30,684 - 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 15:29:31,498 - 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 15:44:34,334 - 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 15:59:35,033 - 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 16:14:35,740 - 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 16:29:36,346 - 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 16:44:36,995 - 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 16:59:39,786 - 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 17:14:41,418 - 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 17:29:41,970 - 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 17:44:42,490 - 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 17:59:43,084 - 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 18:14:43,653 - 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 18:29:44,236 - 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 18:44:44,875 - 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 18:59:45,477 - 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 19:14:46,708 - 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 19:29:47,214 - 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 19:44:47,765 - 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 19:59:48,370 - 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 20:14:48,876 - 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 20:29:49,609 - 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 20:44:50,186 - 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 20:59:50,680 - 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 21:14:51,209 - 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 21:29:51,658 - 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 21:44:52,300 - 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 21:59:52,930 - 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 22:14:53,585 - 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 22:29:54,018 - 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 22:44:54,529 - 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 22:59:55,019 - 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 23:14:55,610 - 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 23:29:56,144 - 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 23:44:56,663 - 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 23:59:57,191 - 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-09 00:45:20,394 - discom_delhi_scraper - ERROR - [HTTP_STATUS] HTTP 503 while fetching page: https://www.delhisldc.org/Redirect.aspx?Loc=0804 2026-06-09 00:45:20,396 - discom_delhi_scraper - ERROR - [CYCLE_FAILURE] Fetch failed for https://www.delhisldc.org/Redirect.aspx?Loc=0804; no payload generated this cycle.