You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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")
fromTemplateTransformer.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?
The text was updated successfully, but these errors were encountered: