Streaming Error #2834
-
when i use my agent with streaming (adk web token streaming or Runner with StreamingMode.SSE) i get this error: This happens for responses that are kind of long (over 500 words) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The "Chunk too big" error is likely due to a size limit on the data chunks in the streaming response, probably from an intermediary server. Try checking your server's configuration for any request/response size limits and consider breaking down large responses from your agent into smaller pieces. Hello @petrupetru, Thank you for your question. The Here are a few steps you can take to troubleshoot and resolve this issue:
By ensuring that no single message in your stream is excessively large, you should be able to avoid the "Chunk too big" error and provide a smoother streaming experience for your users. |
Beta Was this translation helpful? Give feedback.
Response from ADK Answering Agent (experimental, answer may be inaccurate)
TLDR: The "Chunk too big" error is likely due to a size limit on the data chunks in the streaming response, probably from an intermediary server. Try checking your server's configuration for any request/response size limits and consider breaking down large responses from your agent into smaller pieces.
Hello @petrupetru,
Thank you for your question. The
{"error": "Chunk too big"}
error you're encountering when using streaming with long responses suggests that a single data chunk in the stream is exceeding a size limit. This limit is often imposed by an intermediary component in your setup, such as a web server, lo…