calesthio/OpenMontage · error · RuntimeError
Jimeng task invalid: status={status}
Error message
Jimeng task invalid: status={status} What it means
Error "Jimeng task invalid: status={status}" thrown in calesthio/OpenMontage.
Source
Thrown at tools/video/jimeng_video.py:321
"req_json": json.dumps({"return_url": True}),
}, ensure_ascii=False).encode("utf-8")
deadline = time.time() + timeout_seconds
while time.time() < deadline:
time.sleep(poll_interval)
headers = self._sign("POST", "/", query, {}, body, ak, sk)
url = f"https://{_HOST}/?{urllib.parse.urlencode(sorted(query.items()))}"
resp = requests.post(url, data=body, headers=headers, timeout=30)
data = self._json_or_raise(resp)
self._check_code(resp.status_code, data)
status = (data.get("data") or {}).get("status", "")
if status == "done":
video_url = (data.get("data") or {}).get("video_url")
if not video_url:
raise RuntimeError(f"Jimeng task done but no video_url: {data}")
return video_url
if status in ("not_found", "expired"):
raise RuntimeError(f"Jimeng task invalid: status={status}")
raise TimeoutError(f"Jimeng task {task_id} did not finish within {timeout_seconds}s")
@staticmethod
def _sign(
method: str, path: str, query_params: dict,
headers: dict, body: bytes, ak: str, sk: str,
) -> dict:
now = datetime.now(timezone.utc)
x_date = now.strftime("%Y%m%dT%H%M%SZ")
short_date = x_date[:8]
body_hash = hashlib.sha256(body).hexdigest()
headers = dict(headers)
headers["Host"] = _HOST
headers["X-Date"] = x_date
headers["X-Content-Sha256"] = body_hash
headers["Content-Type"] = "application/json"
View on GitHub (pinned to 95e1c3d0ab)
Solutions
- Inspect the returned status value in the error; Jimeng only accepts known task states, so an unexpected status means the task payload or account state is invalid.
- Resubmit the task with corrected parameters, or query the task later if the status is transient.
When it happens
Trigger: Jimeng returns a terminal task status that is neither success nor a known in-progress state while polling a video generation task.
Common situations: See trigger scenarios.
AI-assisted analysis of calesthio/OpenMontage@95e1c3d0ab (2026-08-15).
Data as JSON: /api/errors/9132e1970cff65d0.
Report an issue: GitHub.