8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc3167 commit 6454029Copy full SHA for 6454029
src/google/adk/cli/fast_api.py
@@ -756,6 +756,12 @@ async def process_messages():
756
except Exception as e:
757
logger.exception("Error during live websocket communication: %s", e)
758
traceback.print_exc()
759
+ WEBSOCKET_INTERNAL_ERROR_CODE = 1011
760
+ WEBSOCKET_MAX_BYTES_FOR_REASON = 123
761
+ await websocket.close(
762
+ code=WEBSOCKET_INTERNAL_ERROR_CODE,
763
+ reason=str(e)[:WEBSOCKET_MAX_BYTES_FOR_REASON],
764
+ )
765
finally:
766
for task in pending:
767
task.cancel()
0 commit comments