Overview
This node, named "jimeng Node," is designed to interact with various resources and operations defined externally via a resource factory. Specifically, for the "视频生成" (Video Generation) resource and the "获取视频状态" (Get Video Status) operation, it retrieves the status of a video based on a provided identifier. This functionality is useful in workflows where you need to monitor or check the progress/status of video processing tasks, such as video rendering, encoding, or generation jobs.
Practical examples include:
- Checking if a video generation task has completed successfully.
- Polling the status of a video to trigger subsequent workflow steps once ready.
- Retrieving error or progress information about ongoing video processing.
Properties
| Name | Meaning |
|---|---|
| historyId | The unique identifier of the video history record whose status you want to retrieve. |
Output
The node outputs JSON data representing the status of the requested video. Each output item corresponds to an input item processed. The structure of the JSON depends on the external API response but generally includes fields indicating the current state, progress, errors, or completion details of the video generation process.
If the node supports binary data output (not evident from the provided code), it would typically represent video files or related media content; however, this is not indicated here.
Dependencies
- Requires an API key credential for authentication with the external service managing video generation and status retrieval.
- Depends on an external resource factory module that defines available resources and operations.
- The node uses a helper method to construct execution metadata and handle multiple input items.
- No additional environment variables are explicitly required beyond the API credential.
Troubleshooting
Common issues:
- Providing an invalid or empty
historyIdwill likely cause the operation to fail or return no meaningful status. - If the external API is unreachable or returns an error, the node will throw an error unless "Continue On Fail" is enabled.
- Misconfiguration of the API credential can lead to authentication failures.
- Providing an invalid or empty
Error messages:
"未实现方法: 视频生成.获取视频状态"("Unimplemented method: 视频生成.获取视频状态") indicates that the requested resource-operation combination is not implemented or recognized by the resource factory. Verify that the resource and operation names are correct and supported.- Errors during the API call will be logged with detailed messages and stack traces if debugging is enabled.
Resolution tips:
- Ensure the
historyIdis correctly set and corresponds to an existing video record. - Confirm that the API credentials are valid and have necessary permissions.
- Check network connectivity and API endpoint availability.
- Enable "Continue On Fail" if partial processing is acceptable when some items fail.
- Ensure the
Links and References
- No direct links are provided in the source code. For more information, consult the documentation of the external video generation service or the resource factory used by this node.