Skip to content

[Bug] Media generation workflow nodes download remote files without a timeout #6370

Description

@zhonggang666

Problem Description

Several workflow media-generation nodes download generated remote media with requests.get(...).content but do not set a timeout.

Code Locations

  • apps/application/flow/step_node/image_generate_step_node/impl/base_image_generate_node.py:62
  • apps/application/flow/step_node/image_to_video_step_node/impl/base_image_to_video_node.py:68
  • apps/application/flow/step_node/text_to_video_step_node/impl/base_text_to_video_node.py:62

Steps to Reproduce

  1. Configure an image/video generation model provider that returns an HTTP URL as the generated media result.
  2. Make that URL slow, unreachable, or keep the TCP connection open without sending a complete response.
  3. Run the corresponding workflow node.

Actual Result

The workflow node calls requests.get(url).content without a timeout, so the workflow execution can block for a long time or indefinitely while downloading the generated media.

Expected Result

The download should use an explicit timeout and report a controlled node error when the media cannot be fetched in time.

Impact

A bad or slow generated media URL can tie up workflow execution resources and make the node appear stuck instead of failing predictably.

MaxKB Version

Current v2 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions