Error handling
ā ļø Error Handling Guide
š¹ Error Types
Error Type | Error Code | Error Message |
---|---|---|
Validation Error | 400 | "The 'mv' field is invalid. The model should be 'sonic-v3-5' or 'sonic-v4'." |
Validation Error | 400 | "The 'persona_id' field is required when task_type = persona_music." |
Validation Error | 400 | "The 'make_instrumental' field should be boolean." |
Validation Error | 400 | "The 'custom_mode' field should be boolean." |
Validation Error | 400 | "The prompt character length should be less than 3000." |
Validation Error | 400 | "The 'gpt_description_prompt' character length should be less than 200." |
Validation Error | 400 | "The tags character length should be less than 200." |
Validation Error | 400 | "The title character length should be less than 80." |
Validation Error | 400 | "description is required." |
Validation Error | 400 | "The description character length should be less than 120." |
Validation Error | 400 | "name and continue_clip_id are required fields." |
Validation Error | 400 | "The name character length should be less than 80." |
Validation Error | 400 | "The description character length should be less than 200." |
Validation Error | 400 | "task not found." |
Validation Error | 400 | "missing task id." |
Unauthorized | 401 | "Authorization header is missing." |
Unauthorized | 401 | "Invalid authorization format." |
Forbidden | 403 | "The remaining credits are not enough. You can buy more one-time credit packs or subscribe." |
Forbidden | 403 | "You do not have an active subscription. Please check whether your renewal was successful." |
Forbidden | 403 | "The lyrics format is invalid. Please check and try again." |
Forbidden | 403 | "The lyrics contain copyrighted content: 'specificError'. Please use original lyrics." |
Forbidden | 403 | "The lyrics contain inappropriate content: 'specificError'." |
Forbidden | 403 | "The song description needs moderation review." |
Forbidden | 403 | "The song description contains artist names: 'specificError' which is not allowed." |
Forbidden | 403 | "The song description contains producer tags: 'specificError' which is not allowed." |
Not Found | 400 | "task not found." |
Timeout | 504 | "Task failed due to timeout. Credits were previously refunded." |
Server Error | 500 | "Internal Server Error." |
š Notes
1.
2.
3.
Modified atĀ 2025-02-11 03:23:35