GoogleCloudPlatform / GoogleCloudPlatform/core-solution-services

streamlit query Runtime Error

Open
#81 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
30
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I am getting this error with when trying the query in Streamlit:

![image](https://github.com/GoogleCloudPlatform/core-solution-services/assets/113040929/73d1ecf5-f509-4c5c-85fc-90b4c0d12cdd)

`
{
errorGroups: [1]

insertId: "kqt3ugge77p89rfh"

labels: {4}

logName: "projects/genie-jumphost-test/logs/stderr"

receiveTimestamp: "2023-11-13T19:16:52.593389302Z"

resource: {2}

severity: "ERROR"

textPayload: "Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 537, in _run_script
self._session_state.on_script_will_rerun(rerun_data.widget_states)

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 68, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 500, in on_script_will_rerun
self._call_callbacks()

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 513, in _call_callbacks
self._new_widget_state.call_callback(wid)

File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 260, in call_callback
callback(*args, **kwargs)

File "/opt/pages/4_Query.py", line 34, in on_input_change
response = run_query(query_engine_id, user_input, chat_id=st.session_state.chat_id)

File "/opt/api.py", line 136, in run_query
handle_error(resp)

File "/opt/api.py", line 40, in handle_error
raise RuntimeError(f"Error with status {response.status_code}: {str(response)}")

RuntimeError: Error with status 500: "

timestamp: "2023-11-13T19:16:51.748504453Z"

}
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.