Hi @tonykip ,
Thanks a lot for the detailed answer. I am able to get the app up and running when it loads for the first time. I am also able to read the table in my app. But, when I click on “Delete” button:, I am getting this error:
2023-09-06 13:34:01.896 Uncaught app exception
Traceback (most recent call last):
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\storage\in_memory_cache_storage_wrapper.py”, line 87, in get
entry_bytes = self._read_from_mem_cache(key)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\storage\in_memory_cache_storage_wrapper.py”, line 137, in _read_from_mem_cache
raise CacheStorageKeyNotFoundError(“Key not found in mem cache”)
streamlit.runtime.caching.storage.cache_storage_protocol.CacheStorageKeyNotFoundError: Key not found in mem cache
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\xxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\cache_data_api.py”, line 634, in read_result
pickled_entry = self.storage.get(key)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\storage\in_memory_cache_storage_wrapper.py”, line 89, in get
entry_bytes = self._persist_storage.get(key)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\storage\local_disk_cache_storage.py”, line 155, in get
raise CacheStorageKeyNotFoundError(
streamlit.runtime.caching.storage.cache_storage_protocol.CacheStorageKeyNotFoundError: Local disk cache storage is disabled (persist=None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 552, in _run_script
exec(code, module.dict)
File “C:\Users\xxxx\Desktop\laptop-backup\desktop-data\Jellyfishpoc\GloproxxxxStreamlitpoc\src\app\main.py”, line 339, in
run_query(“DELETE FROM xxxx_dev.xxxx_explorer WHERE project_id = %s;”, (row_id_to_delete,))
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\cache_utils.py”, line 211, in wrapper
return cached_func(*args, **kwargs)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\cache_utils.py”, line 240, in call
return self._get_or_create_cached_value(args, kwargs)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\cache_utils.py”, line 266, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File “C:\Users\xxxx\Anaconda3\lib\site-packages\streamlit\runtime\caching\cache_utils.py”, line 320, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File “C:\Users\xxxx\Desktop\laptop-backup\desktop-data\Jellyfishpoc\GloproxxxxStreamlitpoc\src\app\main.py”, line 332, in run_query
return cur.fetchall()
psycopg2.ProgrammingError: no results to fetch