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

When receiving binary files response in HTTP Request Node, it wouldn't decode Base64Encode. I need it. #12136

Open
5 tasks done
mihit opened this issue Dec 26, 2024 · 0 comments
Labels
🔨 feat:tools Tools for agent, function call related stuff.

Comments

@mihit
Copy link

mihit commented Dec 26, 2024

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I need to send XLSX and receive PDF response in HTTP Request node. It calls AWS API Gateway. APIGW requires binary responses are base64 encoded. It seems that Dify has no base64 decoding capablity now.

2. Additional context or comments

/api/core/workflow/nodes/http_request/entities.py
I think updating Response class to auto-detect encoding will be good.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@mihit mihit changed the title Receiving binary files response via HTTP Request Node, it wouldn't decode Base64Encode. I need it. When receiving binary files response in HTTP Request Node, it wouldn't decode Base64Encode. I need it. Dec 26, 2024
@dosubot dosubot bot added the 🔨 feat:tools Tools for agent, function call related stuff. label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 feat:tools Tools for agent, function call related stuff.
Projects
None yet
Development

No branches or pull requests

1 participant