Error generating Missed Opportunities
Traceback (most recent call last):
File "/opt/render/project/src/api/index.py", line 100, in _run
html = generate_fn()
^^^^^^^^^^^^^
File "/opt/render/project/src/api/index.py", line 273, in generate
all_jid_counts = f_counts.result()
^^^^^^^^^^^^^^^^^
File "/opt/render/project/python/Python-3.12.13/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/opt/render/project/python/Python-3.12.13/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/opt/render/project/python/Python-3.12.13/lib/python3.12/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/render/project/src/tx-data-scripts/sway_missed_opps.py", line 59, in fetch_sway_counts_all_jurisdictions
rows = metabase_query(f"""
^^^^^^^^^^^^^^^^^^^
File "/opt/render/project/src/tx-data-scripts/lib/metabase.py", line 35, in metabase_query
headers={"x-api-key": _get_api_key(), "Content-Type": "application/json"},
^^^^^^^^^^^^^^
File "/opt/render/project/src/tx-data-scripts/lib/metabase.py", line 25, in _get_api_key
_api_key = input("Enter Metabase API key (mb_...): ").strip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line