mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 11:37:03 +08:00
[Kling] Print response data when error validating response (#146)
This commit is contained in:
parent
7361f8789d
commit
7399187340
@ -192,7 +192,7 @@ def validate_video_result_response(response) -> None:
|
|||||||
"""Validates that the Kling task result contains a video."""
|
"""Validates that the Kling task result contains a video."""
|
||||||
if not is_valid_video_response(response):
|
if not is_valid_video_response(response):
|
||||||
error_msg = f"Kling task {response.data.task_id} succeeded but no video data found in response."
|
error_msg = f"Kling task {response.data.task_id} succeeded but no video data found in response."
|
||||||
logging.error(error_msg)
|
logging.error(f"Error: {error_msg}.\nResponse: {response}")
|
||||||
raise KlingApiError(error_msg)
|
raise KlingApiError(error_msg)
|
||||||
|
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ def validate_image_result_response(response) -> None:
|
|||||||
"""Validates that the Kling task result contains an image."""
|
"""Validates that the Kling task result contains an image."""
|
||||||
if not is_valid_image_response(response):
|
if not is_valid_image_response(response):
|
||||||
error_msg = f"Kling task {response.data.task_id} succeeded but no image data found in response."
|
error_msg = f"Kling task {response.data.task_id} succeeded but no image data found in response."
|
||||||
logging.error(error_msg)
|
logging.error(f"Error: {error_msg}.\nResponse: {response}")
|
||||||
raise KlingApiError(error_msg)
|
raise KlingApiError(error_msg)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user