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

413 Payload Too Large Error When Using Chatbot Share Button in Multistep Agent UI #10606

Closed
1 task done
yvrjsharma opened this issue Feb 17, 2025 · 0 comments · Fixed by #10637
Closed
1 task done

413 Payload Too Large Error When Using Chatbot Share Button in Multistep Agent UI #10606

yvrjsharma opened this issue Feb 17, 2025 · 0 comments · Fixed by #10637
Assignees
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component

Comments

@yvrjsharma
Copy link
Collaborator

Describe the bug

Using the share button in the open-deep-research chatbot component triggers a 413 (Payload Too Large) error from CloudFront.

This happens when trying to share agent response (usually with more than four agent steps) to Hugging Face Spaces Discussions using the share button. However, no error occurs if the agent response is small.

Error Message

413 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error.
Generated by cloudfront (CloudFront)
Request ID: lFs_dgTYdKp1rZUj8S7bKI1lTA_4XBgccTL_KbtRDRX-D2WDIJtCcw==

Suggested Solutions

  1. It would be helpful to have either built-in handling for large payloads or adding docs about size limitations for the share functionality.
  2. Can we add a gr.Warning when content exceeds the shareable limits
  3. One possible solution could be to offer a configurable parameter that allows sharing only the last N messages. However, if the agent's response is too lengthy for certain chats, sharing with N=1 might still result in a 413 Error.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

  1. Create a Gradio chatbot with show_share_button=True
  2. Accumulate larger chat history through conversation
  3. Click the share button in the chatbot component
  4. Observe the 413 error from CloudFront

Screenshot

No response

Logs

System Info

- Gradio Version: `5.16.0`
- Error is encountered on Spaces

Severity

I can work around it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants