jimeng-api icon indicating copy to clipboard operation
jimeng-api copied to clipboard

状态码: 30,错误码: 2038 大佬请问这是什么意思呢?我这个用着用着突然就这样了,无论是文生还是图生都是这个错误

Open BlackCateYu opened this issue 9 months ago • 4 comments

[2026-02-09 18:22:14.303][info][image-uploader.ts<161,12>] 图片文件上传成功 [2026-02-09 18:22:14.423][info][image-uploader.ts<233,12>] 图片上传完成: tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70 [2026-02-09 18:22:14.423][info][images.ts<132,14>] 图片 1/1 上传成功: tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70 [2026-02-09 18:22:14.424][info][images.ts<139,10>] 所有图片上传完成,开始图生图: tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70 [2026-02-09 18:22:14.425][info][core.ts<294,10>] 发送请求: POST https://jimeng.jianying.com/mweb/v1/aigc_draft/generate
[2026-02-09 18:22:14.426][info][core.ts<295,10>] 请求参数: {"aid":513695,"device_platform":"web","region":"cn","webId":7920689938878617000,"da_version":"3.3.2","web_component_open_flag":1,"web_version":"7.5.0","aigc_features":"app_lip_sync"} [2026-02-09 18:22:14.427][info][core.ts<296,10>] 请求数据: {"extend":{"root_model":"high_aes_general_v40"},"submit_id":"33ed0181-05a1-11f1-9791-f528f5b0c24e","metrics_extra":"{"promptSource":"custom","generateCount":1,"enterFrom":"click","sceneOptions":"[{\"type\":\"image\",\"scene\":\"ImageBasicGenerate\",\"modelReqKey\":\"jimeng-4.0\",\"resolutionType\":\"2k\",\"abilityList\":[{\"abilityName\":\"byte_edit\",\"strength\":0.5,\"source\":{\"imageUrl\":\"blob:https://dreamina.capcut.com/33ed0184-05a1-11f1-9791-f528f5b0c24e\"}}],\"reportParams\":{\"enterSource\":\"generate\",\"vipSource\":\"generate\",\"extraVipFunctionKey\":\"jimeng-4.0-2k\",\"useVipFunctionDetailsReporterHoc\":true}}]","generateId":"33ed0181-05a1-11f1-9791-f528f5b0c24e","isRegenerate":false}","draft_content":"{"type":"draft","id":"33ed2897-05a1-11f1-9791-f528f5b0c24e","min_version":"3.2.9","min_features":[],"is_from_tsn":true,"version":"3.3.7","main_component_id":"33ed0180-05a1-11f1-9791-f528f5b0c24e","component_list":[{"type":"image_base_component","id":"33ed0180-05a1-11f1-9791-f528f5b0c24e","min_version":"3.0.2","aigc_mode":"workbench","metadata":{"type":"","id":"33ed2898-05a1-11f1-9791-f528f5b0c24e","created_platform":3,"created_platform_version":"","created_time_in_ms":"1770632534425","created_did":""},"generate_type":"blend","abilities":{"type":"","id":"33ed2894-05a1-11f1-9791-f528f5b0c24e","blend":{"type":"","id":"33ed2895-05a1-11f1-9791-f528f5b0c24e","min_features":[],"core_param":{"type":"","id":"33ed0182-05a1-11f1-9791-f528f5b0c24e","model":"high_aes_general_v40","prompt":"##{\"camera\":\"中景,略微俯视视角,展现人群动态\",\"character_setting\":{\"村长\":{\"action\":\"站在村口高台上,挥舞着布告,表情既兴奋又无奈\",\"age\":50,\"appearance\":\"男性,50岁,灰白短发略显稀疏,穿着深色粗布衣(款式陈旧),腰间别着烟袋\",\"name\":\"村长\"},\"姑娘甲\":{\"action\":\"提着裙摆奔跑,脸上带着急切的红晕\",\"age\":18,\"appearance\":\"女性,扎着麻花辫(褐色),穿桃红色碎 花襦裙,手腕系着祈福红绳\",\"name\":\"姑娘甲\"}},\"location\":\"村口老槐树下,背景有简陋的官府告示栏\",\"style_tags\":\"手绘水彩风格,略带夸张的人物表情\",\"time\":\"正午(阳光透过树叶投下斑驳影子)\",\"weather\":\"晴朗(画面右上角可画两只惊飞的麻雀)\"}, 纯正2D日漫风格,质感光照,白然光线,质感十足,古风动漫,营造出震撼的视觉效果 ,将宁静美好的氛国完美呈现。","sample_strength":0.5,"large_image_info":{"type":"","id":"33ed0183-05a1-11f1-9791-f528f5b0c24e","min_version":"3.0.2","height":1440,"width":2560,"resolution_type":"2k"},"intelligent_ratio":false,"image_ratio":3,"negative_prompt":""},"ability_list":[{"type":"","id":"33ed2890-05a1-11f1-9791-f528f5b0c24e","name":"byte_edit","image_uri_list":["tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70"],"image_list":[{"type":"image","id":"33ed2891-05a1-11f1-9791-f528f5b0c24e","source_from":"upload","platform_type":1,"name":"","image_uri":"tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70","width":0,"height":0,"format":"","uri":"tos-cn-i-tb4s082cfz/07edb458125147349e81c824097cce70"}],"strength":0.5}],"prompt_placeholder_info_list":[{"type":"","id":"33ed2892-05a1-11f1-9791-f528f5b0c24e","ability_index":0}],"postedit_param":{"type":"","id":"33ed2893-05a1-11f1-9791-f528f5b0c24e","generate_type":0}},"gen_option":{"type":"","id":"33ed2896-05a1-11f1-9791-f528f5b0c24e","generate_all":false}}}]}","http_common_info":{"aid":513695}} [2026-02-09 18:22:15.119][info][core.ts<322,14>] 响应状态: 200 OK [2026-02-09 18:22:15.119][info][core.ts<331,14>] 响应数据摘要: {"ret":"0","errmsg":"success","systime":"1770632534","logid":"2026020918221411E72CE386C74EB30DD3","data":{"aigc_data":{"generate_type":12,"history_record_id":"8875150819340","origin_history_record_id":null,"created_time":1770632534.591,"item_list":[],"origin_item_list":[],"task":{"task_id":"8875150819340","submit_id":"33ed0181-05a1-11f1-9791-f528f5b0c24e","aid":0,"status":20,"finish_time":0,"history_id":"8875150819340","task_payload":null,"original_input":null,"req_first_frame_image":null,"ai_ge... [2026-02-09 18:22:15.120][info][images.ts<215,10>] 图生图任务已提交,history_id: 8875150819340,等待生成完成... [2026-02-09 18:22:15.120][info][smart-poller.ts<155,12>] 开始智能轮询: historyId=8875150819340, 最大轮询次数=900, 期望结果数=1 [2026-02-09 18:22:15.121][info][core.ts<294,10>] 发送请求: POST https://jimeng.jianying.com/mweb/v1/get_history_by_ids
[2026-02-09 18:22:15.121][info][core.ts<295,10>] 请求参数: {"aid":513695,"device_platform":"web","region":"cn","webId":7920689938878617000,"da_version":"3.3.2","web_component_open_flag":1,"web_version":"7.5.0","aigc_features":"app_lip_sync"} [2026-02-09 18:22:15.122][info][core.ts<296,10>] 请求数据: {"history_ids":["8875150819340"],"image_info":{"width":2048,"height":2048,"format":"webp","image_scene_list":[{"scene":"smart_crop","width":360,"height":360,"uniq_key":"smart_crop-w:360-h:360","format":"webp"},{"scene":"smart_crop","width":480,"height":480,"uniq_key":"smart_crop-w:480-h:480","format":"webp"},{"scene":"smart_crop","width":720,"height":720,"uniq_key":"smart_crop-w:720-h:720","format":"webp"},{"scene":"smart_crop","width":720,"height":480,"uniq_key":"smart_crop-w:720-h:480","format":"webp"},{"scene":"normal","width":2400,"height":2400,"uniq_key":"2400","format":"webp"},{"scene":"normal","width":1080,"height":1080,"uniq_key":"1080","format":"webp"},{"scene":"normal","width":720,"height":720,"uniq_key":"720","format":"webp"},{"scene":"normal","width":480,"height":480,"uniq_key":"480","format":"webp"},{"scene":"normal","width":360,"height":360,"uniq_key":"360","format":"webp"}]}} [2026-02-09 18:22:15.292][info][core.ts<322,14>] 响应状态: 200 OK [2026-02-09 18:22:15.297][info][core.ts<331,14>] 响应数据摘要: {"ret":"0","errmsg":"success","systime":"1770632535","logid":"2026020918221515A92CE8C121300A44F3","data":{"8875150819340":{"generate_type":12,"history_record_id":"8875150819340","origin_history_record_id":null,"created_time":1770632534.591,"item_list":[],"origin_item_list":[],"task":{"task_id":"8875150819340","submit_id":"33ed0181-05a1-11f1-9791-f528f5b0c24e","aid":0,"status":20,"finish_time":0,"history_id":"8875150819340","task_payload":null,"original_input":null,"req_first_frame_image":null,"a... [2026-02-09 18:22:15.304][info][smart-poller.ts<171,16>] 轮询 1/900: status=20(PROCESSING), failCode=none, items=0, elapsed=0s, finish_time=0, stable=0/5 [2026-02-09 18:22:20.319][info][core.ts<294,10>] 发送请求: POST https://jimeng.jianying.com/mweb/v1/get_history_by_ids [2026-02-09 18:22:20.319][info][core.ts<295,10>] 请求参数: {"aid":513695,"device_platform":"web","region":"cn","webId":7920689938878617000,"da_version":"3.3.2","web_component_open_flag":1,"web_version":"7.5.0","aigc_features":"app_lip_sync"} [2026-02-09 18:22:20.320][info][core.ts<296,10>] 请求数据: {"history_ids":["8875150819340"],"image_info":{"width":2048,"height":2048,"format":"webp","image_scene_list":[{"scene":"smart_crop","width":360,"height":360,"uniq_key":"smart_crop-w:360-h:360","format":"webp"},{"scene":"smart_crop","width":480,"height":480,"uniq_key":"smart_crop-w:480-h:480","format":"webp"},{"scene":"smart_crop","width":720,"height":720,"uniq_key":"smart_crop-w:720-h:720","format":"webp"},{"scene":"smart_crop","width":720,"height":480,"uniq_key":"smart_crop-w:720-h:480","format":"webp"},{"scene":"normal","width":2400,"height":2400,"uniq_key":"2400","format":"webp"},{"scene":"normal","width":1080,"height":1080,"uniq_key":"1080","format":"webp"},{"scene":"normal","width":720,"height":720,"uniq_key":"720","format":"webp"},{"scene":"normal","width":480,"height":480,"uniq_key":"480","format":"webp"},{"scene":"normal","width":360,"height":360,"uniq_key":"360","format":"webp"}]}} [2026-02-09 18:22:20.502][info][core.ts<322,14>] 响应状态: 200 OK [2026-02-09 18:22:20.504][info][core.ts<331,14>] 响应数据摘要: {"ret":"0","errmsg":"success","systime":"1770632540","logid":"20260209182220E2ADFB495E832440B1D4","data":{"8875150819340":{"generate_type":12,"history_record_id":"8875150819340","origin_history_record_id":null,"created_time":1770632534.591,"item_list":[],"origin_item_list":[],"task":{"task_id":"8875150819340","submit_id":"33ed0181-05a1-11f1-9791-f528f5b0c24e","aid":0,"status":30,"finish_time":1770632536,"history_id":"8875150819340","task_payload":null,"original_input":null,"req_first_frame_image... [2026-02-09 18:22:20.505][info][smart-poller.ts<171,16>] 轮询 2/900: status=30(FAILED), failCode=2038, items=0, elapsed=5s, finish_time=1770632536, stable=1/5 [2026-02-09 18:22:20.506][info][smart-poller.ts<182,18>] 退出轮询: 任务失败, 最终图片数量=0 [2026-02-09 18:22:20.507][error][error-handler.ts<146,12>] 图像生成最终失败: status=30, failCode=2038, historyId=8875150819340, 已生成数量=0 [2026-02-09 18:22:20.507][error][smart-poller.ts<221,16>] 轮询过程中发生错误: 图像生成失败,状态码: 30,错误码: 2038 [2026-02-09 18:22:20.508][error][server.ts<349,32>] APIException [Error]: 图像生成失败,状态码: 30,错误码: 2038 at handleGenerationFailure (F:\wok\jimeng-api\src\lib\error-handler.ts:148:11) at SmartPoller.poll (F:\wok\jimeng-api\src\lib\smart-poller.ts:186:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async generateImageComposition (F:\wok\jimeng-api\src\api\controllers\images.ts:225:58) at async tryGenerateWithAccounts (F:\wok\jimeng-api\src\api\routes\images.ts:310:18) at async /compositions (F:\wok\jimeng-api\src\api\routes\images.ts:332:26) { errcode: -2007, errmsg: '图像生成失败,状态码: 30,错误码: 2038', data: undefined, httpStatusCode: undefined }

BlackCateYu avatar Feb 09 '26 10:02 BlackCateYu

一般只要能进入轮询,大概率就是官方服务器那边的问题,你可以看下官方页面的生成情况

iptag avatar Feb 09 '26 10:02 iptag

一般只要能进入轮询,大概率就是官方服务器那边的问题,你可以看下官方页面的生成情况

大佬啊,请问一下您,就是这个图生视频是只能首尾帧吗?不能那个主体参考吗

BlackCateYu avatar Feb 09 '26 10:02 BlackCateYu

输入的文字不符合平台规则

starrye avatar Feb 09 '26 11:02 starrye

输入的文字不符合平台规则

对的,我当时来不及撤回了,大佬回复特别及时

BlackCateYu avatar Feb 09 '26 11:02 BlackCateYu