For path has requests dependency, why can't import, sandbox image: langgenius/dify-sandbox:latest #5776

Closed
opened 2026-02-21 18:12:33 -05:00 by yindo · 2 comments
Owner

Originally created by @rosehuynh92 on GitHub (Sep 24, 2024).

For path has requests dependency, why can't import, sandbox image: langgenius/dify-sandbox:latest
image

image

Originally posted by @EvanGerry in https://github.com/langgenius/dify/discussions/4854

Originally created by @rosehuynh92 on GitHub (Sep 24, 2024). For path has requests dependency, why can't import, sandbox image: langgenius/dify-sandbox:latest ![image](https://github.com/langgenius/dify/assets/14178306/da99544c-30ff-4173-b4f0-3c2f4d86d3e4) ![image](https://github.com/langgenius/dify/assets/14178306/ee63475e-7be7-4dc2-a0cd-b3f8add5c857) _Originally posted by @EvanGerry in https://github.com/langgenius/dify/discussions/4854_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:12:33 -05:00
yindo closed this issue 2026-02-21 18:12:33 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 24, 2024):

Hey @rosehuynh92! 👋 I'm here to help you with any bugs, questions, and to guide you on becoming a contributor. I'm Dosu, and I'm here to assist you while you wait for a human maintainer.

I found a similar unsolved discussion regarding the ModuleNotFoundError: No module named 'requests' error in the Dify sandbox environment [1].

The Dify sandbox environment has known limitations that restrict making network requests, which includes the use of the requests module. This is due to the sandboxed execution environment being strictly isolated to ensure security, preventing functions that may pose security risks, such as making network requests [2].

If you need to use the requests module or make network requests, you might need to consider alternative approaches or configurations outside the sandbox environment.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 24, 2024): <!-- Greeting --> Hey @rosehuynh92! 👋 I'm here to help you with any bugs, questions, and to guide you on becoming a contributor. I'm Dosu, and I'm here to assist you while you wait for a human maintainer. <!-- Answer --> I found a similar unsolved discussion regarding the `ModuleNotFoundError: No module named 'requests'` error in the Dify sandbox environment <sup>[[1]](https://github.com/langgenius/dify/discussions/4854)</sup>. The Dify sandbox environment has known limitations that restrict making network requests, which includes the use of the `requests` module. This is due to the sandboxed execution environment being strictly isolated to ensure security, preventing functions that may pose security risks, such as making network requests <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/code.md)</sup>. If you need to use the `requests` module or make network requests, you might need to consider alternative approaches or configurations outside the sandbox environment. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 24, 2024):

Please use 0.2.9, please open an issue in dify-sandbox instead

@crazywoola commented on GitHub (Sep 24, 2024): Please use 0.2.9, please open an issue in dify-sandbox instead
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5776