Errors and troubleshooting

Vmake Labs API errors come from three layers: HTTP, platform business codes (meta.code), and task status (data.status / data.msg). Find the layer first, then look at the details.

1. HTTP

StatusCommon causesAction
401 / 403Wrong signature, X-Sdk-Date skew, invalid AK, or X-Agent-* headers not signedCheck each item against Signing and check your clock
404Wrong URL or pathCheck push_path and status_query.path in the AI policy
429Rate limit exceededReduce concurrency. Retry read-only requests with backoff
5xxServer errorRetry read-only requests with backoff. If the result of a quota or submission request is unknown, check the original request first and keep any request IDs

2. Platform business codes (WAPI)

The APIs on wapi-skill.vmake.ai (config and consume) all return:

{ "meta": { "code": <int>, "msg": "...", "reqid": "<request id>" }, "response": {} }
  • code=0 means success. Otherwise see msg.

Common cases (the server defines the exact codes):

SymptomSuggested action
Invalid or empty gidCall the config API first and read response.gid
None of supported_schemas supportedDeclare a schema in the request body that both you and the server support
Task not authorized or quota exhaustedCheck which tools your plan covers. The task in consume is the material_id, not the task path
Media URL unreachableIf you provide your own URL, check that it is reachable. Otherwise use the OSS upload
Outdated versionneed_update=true or notices[].code == "skill_upgrade_available" is a notice and does not fail the request. Staying on an old version may mean new tools are not delivered

3. Task status

The task APIs (/ai/task_push, /ai/task_query) return:

{ "data": { "status": 10, "msg": "ok", "result": { ... } } }
statusMeaningCommon action
1 / other intermediate statesIn progressWait for the next durations interval
2FailedRead data.msg. Check first whether the input media meets the requirements
9Accepted asynchronouslyKeep polling
10SucceededRead data.result
20AbortedRead data.msg. Usually an internal tool error

If a task fails, the quota deducted for that task is returned to your account.

4. OSS upload

SymptomAction
Invalid signing regionSet cfg.region to the bucket's actual region. The region in the host takes precedence
SignatureDoesNotMatchThe STS token expired. Get a new token policy
Upload succeeds but the tool cannot read the fileUse policy.data as the tool input and check the bucket ACL

5. SSL

On some macOS setups and older images, the certifi bundle used by Python requests cannot verify the intermediate certificate of the API hosts. The error is SSLError: certificate verify failed.

  • First choice: pip install -U certifi.
  • Alternative: pip install truststore and call truststore.inject_into_ssl() at startup (Python 3.10 or later).

6. Python SDK and CLI errors

The CLI prints a JSON object with an error field and exits with 1. In Python, the same failures raise exceptions.

errorPython exceptionCauseAction
config_unavailableConfigFetchErrorThe config request failedCheck code and message, your AK/SK, and the network. See HTTP above
config_catalog_empty-Your account has no tools in the catalogCheck your plan in the developer center
quota_errorConsumeDeniedErrorThe quota request was rejectedCheck code and message: the tool may not be in your plan, or the quota may be used up
invalid_input_mediaInputMediaValidationErrorToo many or too few inputs, or an empty pathCheck input_media on the tool page. Generation tools take no input or up to the listed number of reference images
invalid_task_parametersParameterValidationError--params is not valid JSON or does not match the tool's parametersCompare detail with the parameter table on the tool page. For example, generation tools require parameter.prompt
invalid_parameter_schemaSchemaConfigurationErrorThe server returned a params_schema the SDK cannot useRetry later or contact support with the tool ID
params_options_unavailableOptionsSourceErrorThe SDK could not fetch the allowed values for a field with options_sourceCheck the network and retry. See detail for the cause
poll_timeoutrun_task returns NonePolling ended before a final statusThe task may still be running. Run action-api-sdk query-task --task-id <task_id>

7. Contact support

Include these values when you report a problem. They do not contain your keys.

  • meta.reqid from the config or quota response.
  • task_id and trace_id from the task response, if you have them.
  • The tool ID, the time of the request in UTC, and the full data.msg.

8. Troubleshooting checklist

  1. Capture the request. Get the request and response from your HTTP client or gateway, and redact secrets before sharing.
  2. Find the layer. Check the HTTP status, then meta.code, then data.status.
  3. Compare signatures. If the signature is wrong, diff CanonicalRequest and StringToSign first.
  4. Check the clock. A skew between X-Sdk-Date and server time outside the window results in a 401.
  5. Narrow it down. Keep a minimal reproducible case (fixed media, fixed material_id, fixed parameters).