dify - 💡(How to fix) Fix Exceeded limit on max bytes to request body [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35311Fetched 2026-04-17 08:56:14
View on GitHub
Comments
2
Participants
3
Timeline
3
Reactions
1
Timeline (top)
commented ×2labeled ×1

Error Message

2026-04-15 09:05:38.910 ERROR [GraphWorker-1] [base.py:271] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{"args":{"description":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"},"error_type":"InvokeBadRequestError","message":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2026-04-15 09:05:38.911 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1774408935505 failed with ABORT strategy: Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8 2026-04-15 09:05:39.017 ERROR [Thread-92439 (_generate_worker)] [workflow_entry.py:111] - Unknown Error when workflow entry running Traceback (most recent call last):

Root Cause

Is this issue caused by limitations in the dify configuration parameters, or by limitations inherent in the AI model itself?

Fix Action

Fix / Workaround

026-04-15 09:05:38.908 INFO [GraphWorker-1] [_client.py:1038] - HTTP Request: POST http://plugin_daemon:5002/plugin/8c4c34fc-f0e8-43b9-9e44-125f1d507bee/dispatch/llm/invoke "HTTP/1.1 200 OK" 2026-04-15 09:05:38.910 ERROR [GraphWorker-1] [base.py:271] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{"args":{"description":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"},"error_type":"InvokeBadRequestError","message":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2026-04-15 09:05:38.911 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1774408935505 failed with ABORT strategy: Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8 2026-04-15 09:05:39.017 ERROR [Thread-92439 (_generate_worker)] [workflow_entry.py:111] - Unknown Error when workflow entry running Traceback (most recent call last):

RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

026-04-15 09:05:38.908 INFO [GraphWorker-1] [_client.py:1038] - HTTP Request: POST http://plugin_daemon:5002/plugin/8c4c34fc-f0e8-43b9-9e44-125f1d507bee/dispatch/llm/invoke "HTTP/1.1 200 OK" 2026-04-15 09:05:38.910 ERROR [GraphWorker-1] [base.py:271] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{"args":{"description":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"},"error_type":"InvokeBadRequestError","message":"Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2026-04-15 09:05:38.911 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1774408935505 failed with ABORT strategy: Failed to invoke model qwen-plus-latest, status code: 400, message: Exceeded limit on max bytes to request body : 6291456, request_id: 440410cb-4463-9631-a387-9c8b7f7c40b8 2026-04-15 09:05:39.017 ERROR [Thread-92439 (_generate_worker)] [workflow_entry.py:111] - Unknown Error when workflow entry running Traceback (most recent call last):

✔️ Expected Behavior

Is this issue caused by limitations in the dify configuration parameters, or by limitations inherent in the AI model itself?

❌ Actual Behavior

No response

extent analysis

TL;DR

The issue is likely caused by exceeding the maximum allowed bytes in the request body when invoking the AI model, and increasing the limit or optimizing the request payload may resolve the issue.

Guidance

  • Check the Dify configuration parameters to see if there is a setting to increase the maximum allowed bytes in the request body.
  • Verify if the AI model itself has a limit on the maximum request body size and if it can be adjusted.
  • Consider optimizing the request payload to reduce its size and stay within the allowed limit.
  • Review the error message and request ID to see if there are any additional details or clues about the cause of the issue.

Example

No code snippet is provided as the issue seems to be related to configuration or model limitations rather than code.

Notes

The issue may be specific to the self-hosted Dify setup using Docker, and the solution may vary depending on the specific configuration and model being used.

Recommendation

Apply workaround: Increase the maximum allowed bytes in the request body or optimize the request payload to resolve the issue, as it is likely caused by a limitation in the Dify configuration or the AI model itself.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix Exceeded limit on max bytes to request body [2 comments, 3 participants]