glmVideo Node icon

glmVideo Node

glmVideo Node

Actions5

Overview

The node named "glmVideo Node" provides operations related to video management, specifically including the ability to delete videos. In the context of the "删除视频" (Delete Video) operation under the "视频生成" (Video Generation) resource, this node allows users to remove a specified video by its unique identifier. This functionality is useful in workflows where automated cleanup or management of video assets is required, such as deleting outdated or unwanted videos from a video hosting service or database.

Practical examples include:

  • Automatically deleting videos after a certain period.
  • Removing videos that fail quality checks.
  • Managing storage by deleting videos no longer needed.

Properties

Name Meaning
id The unique identifier of the video to be deleted. This is a required string input.

Output

The output of the node consists of JSON data representing the result of the delete operation for each input item processed. If an error occurs during deletion and the node is configured to continue on failure, the output will contain an error message associated with the specific item.

No binary data output is indicated in the source code.

Dependencies

  • Requires an API key credential for authentication with the external video service (referred generically as "an API key credential").
  • The node depends on a resource-operation mapping system to resolve the correct function to call based on the selected resource ("视频生成") and operation ("删除视频").
  • The node uses helper methods from the n8n workflow environment for input handling, error management, and output formatting.

Troubleshooting

  • Common issues:

    • Missing or invalid video ID: The node requires a valid video ID to perform deletion; providing an empty or incorrect ID will cause errors.
    • Authentication failures: If the API key credential is missing or invalid, the node will fail to authenticate with the video service.
    • Unsupported resource or operation: If the selected resource-operation pair is not implemented, the node throws an error indicating the method is not implemented.
  • Error messages:

    • "未实现方法: 视频生成.删除视频" — Indicates the delete video operation is not implemented for the given resource.
    • Errors thrown during the API call are logged and can be returned in the output if "continue on fail" is enabled.
  • Resolution:

    • Ensure the video ID is correctly provided.
    • Verify that the API key credential is properly configured and has necessary permissions.
    • Confirm that the resource and operation selections are supported by the node.

Links and References

  • No direct external links are provided in the source code.
  • For further details on configuring credentials and using custom nodes in n8n, refer to the official n8n documentation: https://docs.n8n.io/

Discussion