Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streamlit query Runtime Error #81

Open
speralta-burwood opened this issue Nov 13, 2023 · 1 comment
Open

streamlit query Runtime Error #81

speralta-burwood opened this issue Nov 13, 2023 · 1 comment

Comments

@speralta-burwood
Copy link

speralta-burwood commented Nov 13, 2023

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

image

`
{
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: <Response [500]>"

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

}
`

@speralta-burwood
Copy link
Author

did not make any changes, just had to disable billing overnight to prevent spending. re attached it this morning and ran sb deploy and query is now working.

no error logs on llm-service, just on streamlit:

2023-11-14 15:02:35.472 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False} 2023-11-14 15:02:35.473 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'is_user': True, 'key': 'human_1'} 2023-11-14 15:02:35.474 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False} st.session_state.api_base_url = https://css-backend.tunedcold.site api_base_url = https://css-backend.tunedcold.site 2023-11-14 15:02:52.386 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False} 2023-11-14 15:02:52.387 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'is_user': True, 'key': 'human_1'} 2023-11-14 15:02:52.388 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False} st.session_state.api_base_url = https://css-backend.tunedcold.site api_base_url = https://css-backend.tunedcold.site 2023-11-14 15:03:23.398 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False} 2023-11-14 15:03:23.399 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'is_user': True, 'key': 'human_1'} 2023-11-14 15:03:23.400 Invalid arguments were passed to "st.write" function. Support for passing such unknown keywords arguments will be dropped in future. Invalid arguments were: {'key': 'ai_1', 'allow_html': False, 'is_table': False}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant