plugin langgenius/openai:0.0.20 has an error on stdout: bufio.Scanner: token too long #232

Closed
opened 2026-02-16 10:18:32 -05:00 by yindo · 1 comment
Owner

Originally created by @dimsky on GitHub (Apr 28, 2025).

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.30

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

There are 2 bugs related to image upload:
In the workflow, when modifying the number of images, the changes don't take effect immediately. You need to exit to the application list and re-enter for the changes to take effect.
When calling the same model to upload multiple images, while it works successfully on other platforms, it times out on Dify and shows the error: langgenius/openai:0.0.20 has an error on stdout: bufio.Scanner: token too long

Image

Image

I tested with the same number of images and the same model (GPT-4o) - it works successfully in the cloud version, but in the community version, it fails when the number of images exceeds a certain threshold. Are there any specific configurations that need to be set up?

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @dimsky on GitHub (Apr 28, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.30 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce There are 2 bugs related to image upload: In the workflow, when modifying the number of images, the changes don't take effect immediately. You need to exit to the application list and re-enter for the changes to take effect. When calling the same model to upload multiple images, while it works successfully on other platforms, it times out on Dify and shows the error: `langgenius/openai:0.0.20 has an error on stdout: bufio.Scanner: token too long` ![Image](https://github.com/user-attachments/assets/e4156692-7267-469e-90d8-384802c38fe0) ![Image](https://github.com/user-attachments/assets/4cb8c681-8c05-49e9-a0d7-63e2715d6255) I tested with the same number of images and the same model (GPT-4o) - it works successfully in the cloud version, but in the community version, it fails when the number of images exceeds a certain threshold. Are there any specific configurations that need to be set up? ![Image](https://github.com/user-attachments/assets/1447a35c-1c19-4ceb-a766-0fece9ee4185) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:18:32 -05:00
Author
Owner

@dimsky commented on GitHub (Apr 28, 2025):

Modified MULTIMODAL_SEND_FORMAT=url to fix the second issue.

@dimsky commented on GitHub (Apr 28, 2025): Modified `MULTIMODAL_SEND_FORMAT=url` to fix the second issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#232