{"record":{"id":"26d52e10e7d39401","repo":"jackwener/OpenCLI","slug":"minimax-music-returned-status-1-in-progress-with","errorCode":null,"errorMessage":"MiniMax music returned status 1 (in progress) without a resumable task id${traceId ? ` (trace_id: ${traceId})` : ''}","messagePattern":"MiniMax music returned status 1 \\(in progress\\) without a resumable task id(.+?)\\)` : ''\\}","errorType":"exception","errorClass":"CommandExecutionError","httpStatus":null,"severity":"error","filePath":"clis/minimax/utils.js","lineNumber":107,"sourceCode":"    }\n    if (base.status_code !== 0) {\n        const message = typeof base.status_msg === 'string' && base.status_msg.trim()\n            ? `: ${base.status_msg.trim()}`\n            : '';\n        if (AUTH_CODES.has(base.status_code)) {\n            throw new AuthRequiredError(region.host, `MiniMax ${region.host} rejected ${MINIMAX_API_KEY_VAR} (service ${base.status_code}${message}).`);\n        }\n        throw new CommandExecutionError(`MiniMax music failed (service ${base.status_code}${message})`);\n    }\n    const data = payload.data;\n    if (!data || typeof data !== 'object' || Array.isArray(data) || !Number.isInteger(data.status)) {\n        throw new CommandExecutionError('MiniMax music response is missing integer data.status');\n    }\n    if (data.status === 1) {\n        const traceId = typeof payload.trace_id === 'string' && /^[A-Za-z0-9_-]{1,128}$/.test(payload.trace_id.trim())\n            ? payload.trace_id.trim()\n            : '';\n        throw new CommandExecutionError(\n            `MiniMax music returned status 1 (in progress) without a resumable task id${traceId ? ` (trace_id: ${traceId})` : ''}`,\n            'Do not resubmit blindly: this endpoint exposes no query command, so check MiniMax account history first.',\n        );\n    }\n    if (data.status !== 2) {\n        throw new CommandExecutionError(`MiniMax music returned unknown data.status ${data.status}`);\n    }\n    if (typeof data.audio !== 'string' || !data.audio.trim()) {\n        throw new CommandExecutionError('MiniMax music reported completion without data.audio');\n    }\n    return {\n        audio: data.audio.trim(),\n        expectedBytes: payload.extra_info == null ? null : parseExpectedSize(payload.extra_info),\n    };\n}\n\nfunction parseExpectedSize(extraInfo) {\n    if (!extraInfo || typeof extraInfo !== 'object' || Array.isArray(extraInfo)) {","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/jackwener/OpenCLI/blob/49907e53dc3ade5c223ff0c4c2c2785687cec4e6/clis/minimax/utils.js#L89-L125","documentation":"When MiniMax reports data.status === 1 (generation still in progress) the caller is expected to poll/resume using a task id. This error fires when the in-progress response carries no resumable task id, so the client cannot poll and would lose the job. The optional trace_id is echoed (sanitized) to help support lookups.","triggerScenarios":"MiniMax returns data.status 1 but no task id field in data (or wherever the client reads it), e.g. the API degraded, the job was already reaped server-side, or the response shape changed so the id field is no longer where expected.","commonSituations":"Long-running music generation whose task expired; querying too late after job completion/cleanup; MiniMax incident where status flips to 1 without id; misreading a changed field name after an API update.","solutions":["Check MiniMax account history/console for the task using the printed trace_id before doing anything","Wait and query your MiniMax account history rather than resubmitting immediately (the library explicitly warns against blind resubmission)","If resubmitting, do it once with a new request id and keep the old trace_id for dedup/support","Report the trace_id to MiniMax support if the account history shows the job vanished"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// Before resubmitting after this error, check account history via your MiniMax dashboard\n// using the trace_id embedded in the error message.","typeGuard":"function hasResumableTaskId(data) {\n  return typeof data === 'object' && data !== null &&\n    (typeof data.task_id === 'string' || typeof data.id === 'string');\n}","tryCatchPattern":"try {\n  const result = parseCompletedMusic(payload);\n} catch (e) {\n  const trace = e.message.match(/trace_id: ([A-Za-z0-9_-]+)/)?.[1];\n  if (trace) console.warn(`Check MiniMax account history for trace ${trace} before resubmitting`);\n  // do NOT auto-resubmit; require manual confirmation\n}","preventionTips":["Never auto-resubmit on this error; poll account history first","Persist task ids and trace_ids from every request for support lookups","Query the music job shortly after submission, before task expiry","Keep the client updated with MiniMax's current response schema"],"tags":["minimax","music","async-task","polling"],"backgroundTag":"async-task-id-missing","analyzedSha":"49907e53dc3ade5c223ff0c4c2c2785687cec4e6","analyzedAt":"2026-08-29T08:14:47.543Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}