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

Does dify-sandbox truncate overly long results? #106

Open
CrazyZfp opened this issue Nov 8, 2024 · 0 comments
Open

Does dify-sandbox truncate overly long results? #106

CrazyZfp opened this issue Nov 8, 2024 · 0 comments

Comments

@CrazyZfp
Copy link

CrazyZfp commented Nov 8, 2024

Dify version: 0.6.9
dify-sandbox version: 0.2.1


I have a code node that returns a large dictionary (potentially more than 300KB).

However, each time I run this node, it raises a ValueError("Failed to parse result") from TemplateTransformer.extract_result_str_from_response.

I logged the response from the node and found the issue: the result is incomplete. The dictionary that should be returned is truncated to 227KB, and the second _result_tag is also cut off. As a result, result = re.search(rf'{cls._result_tag}(.*){cls._result_tag}', response, re.DOTALL) matches nothing.

Are there any limits on result length? If so, how can I adjust this limit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant