-
Notifications
You must be signed in to change notification settings - Fork 55
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
example randomly fail in gradio - weather service. #350
Comments
here is a proof that I indeed started a weather demo, but agent was taking about insurance: hatbot_ui-1 | File "/app/run_stream.py", line 72, in chat weather_forecast_service-1 | INFO: 127.0.0.1:58806 - "GET /healthz HTTP/1.1" 200 OK weather_forecast_service-1 | INFO: 127.0.0.1:45436 - "GET /healthz HTTP/1.1" 200 OK |
@B1tMaster thanks for reporting this issue. From what you shared, it does look like you are running the weather demo app, and there are a couple of things happening here from what I can see.
To make sure that the demo sticks to the demo and unrelated prompts are handled gracefully, i've opened a a separate issue: |
I get random error when I ran the example.. I started the weather example, but it seem to be running insurance agent anyway. this could be bug one
Random error: it succeeds 60% of the time and fails the other 40% of the time with these log lines:
NFO: 127.0.0.1:38600 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 172.18.0.1:60232 - "POST /policy/qa HTTP/1.1" 404 Not Found
chatbot_ui-1 | 2024-12-30 09:36:50,957 - INFO - HTTP Request: POST http://host.docker.internal:10000/v1/chat/completions "HTTP/1.1 404 Not Found"
chatbot_ui-1 | 2024-12-30 09:36:50,957 - INFO - Error calling gateway API: upstream application error host=arch_internal, path=/function_calling, status=404, body={"detail":"Not Found"}
chatbot_ui-1 | Traceback (most recent call last):
chatbot_ui-1 | File "/app/run_stream.py", line 61, in chat
chatbot_ui-1 | response = client.chat.completions.create(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/openai/_utils/_utils.py", line 274, in wrapper
chatbot_ui-1 | return func(*args, **kwargs)
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 742, in create
chatbot_ui-1 | return self._post(
chatbot_ui-1 | ^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1270, in post
chatbot_ui-1 | return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 947, in request
chatbot_ui-1 | return self._request(
chatbot_ui-1 | ^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1051, in _request
chatbot_ui-1 | raise self._make_status_error_from_response(err.response) from None
chatbot_ui-1 | openai.NotFoundError: upstream application error host=arch_internal, path=/function_calling, status=404, body={"detail":"Not Found"}
chatbot_ui-1 |
chatbot_ui-1 | During handling of the above exception, another exception occurred:
chatbot_ui-1 |
chatbot_ui-1 | Traceback (most recent call last):
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/queueing.py", line 624, in process_events
chatbot_ui-1 | response = await route_utils.call_process_api(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/route_utils.py", line 323, in call_process_api
chatbot_ui-1 | output = await app.get_blocks().process_api(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/blocks.py", line 2018, in process_api
chatbot_ui-1 | result = await self.call_function(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/blocks.py", line 1579, in call_function
chatbot_ui-1 | prediction = await utils.async_iteration(iterator)
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/utils.py", line 691, in async_iteration
chatbot_ui-1 | return await anext(iterator)
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/utils.py", line 685, in anext
chatbot_ui-1 | return await anyio.to_thread.run_sync(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
chatbot_ui-1 | return await get_async_backend().run_sync_in_worker_thread(
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
chatbot_ui-1 | return await future
chatbot_ui-1 | ^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
chatbot_ui-1 | result = context.run(func, *args)
chatbot_ui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async
chatbot_ui-1 | return next(iterator)
chatbot_ui-1 | ^^^^^^^^^^^^^^
chatbot_ui-1 | File "/usr/local/lib/python3.12/site-packages/gradio/utils.py", line 829, in gen_wrapper
chatbot_ui-1 | response = next(iterator)
chatbot_ui-1 | ^^^^^^^^^^^^^^
chatbot_ui-1 | File "/app/run_stream.py", line 72, in chat
chatbot_ui-1 | raise gr.Error("Error calling gateway API: {}".format(e))
chatbot_ui-1 | gradio.exceptions.Error: 'Error calling gateway API: upstream application error host=arch_internal, path=/function_calling, status=404, body={"detail":"Not Found"}'
weather_forecast_service-1 | INFO: 127.0.0.1:38614 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:53028 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:53032 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:48428 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:48430 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:60944 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:60952 - "GET /healthz HTTP/1.1" 200 OK
weather_forecast_service-1 | INFO: 127.0.0.1:58234 - "GET /healthz HTTP/1.1" 200 OK
Here is what I see on gradio GUI:
The text was updated successfully, but these errors were encountered: