[PR #124] [MERGED] fix(File): enhance error handling for unsupported URL protocols in fi… #163

Closed
opened 2026-02-15 21:16:02 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/124
Author: @fdb02983rhy
Created: 4/28/2025
Status: Merged
Merged: 4/30/2025
Merged by: @Yeuoly

Base: mainHead: fix(File)-enhance-error-handling-for-unsupported-URL-protocols-in-file-retrieval


📝 Commits (1)

  • 8e72dbb fix(File): enhance error handling for unsupported URL protocols in file retrieval

📊 Changes

1 file changed (+14 additions, -3 deletions)

View changed files

📝 python/dify_plugin/file/file.py (+14 -3)

📄 Description

…le retrieval

  • Added exception handling for unsupported protocols in the get_blob method.
  • Raises a ValueError with a clear message if the URL is invalid, guiding users to check the FILES_URL environment variable.
  • Maintained existing functionality while improving robustness against HTTP request failures.

Related issues:

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/124 **Author:** [@fdb02983rhy](https://github.com/fdb02983rhy) **Created:** 4/28/2025 **Status:** ✅ Merged **Merged:** 4/30/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix(File)-enhance-error-handling-for-unsupported-URL-protocols-in-file-retrieval` --- ### 📝 Commits (1) - [`8e72dbb`](https://github.com/langgenius/dify-plugin-sdks/commit/8e72dbbc6cfdeb0b4b4119ce2dd3b044b97ffe99) fix(File): enhance error handling for unsupported URL protocols in file retrieval ### 📊 Changes **1 file changed** (+14 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/file/file.py` (+14 -3) </details> ### 📄 Description …le retrieval - Added exception handling for unsupported protocols in the `get_blob` method. - Raises a ValueError with a clear message if the URL is invalid, guiding users to check the `FILES_URL` environment variable. - Maintained existing functionality while improving robustness against HTTP request failures. Related issues: - https://github.com/langgenius/dify-plugin-sdks/issues/58 - https://github.com/fdb02983rhy/dify-pdf-process-plugin/issues/1 - https://github.com/langgenius/dify/issues/16327 - https://github.com/langgenius/dify-plugins/issues/271 - https://github.com/langgenius/dify-official-plugins/issues/763 - https://github.com/langgenius/dify/issues/15460 - https://github.com/langgenius/dify/issues/15051 - https://github.com/langgenius/dify-official-plugins/issues/387 <img width="392" alt="image" src="https://github.com/user-attachments/assets/b5332b0e-aac0-477c-8233-ba00141420c9" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:02 -05:00
yindo closed this issue 2026-02-15 21:16:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#163