mode_list失败,换网络,代理都无效,重启重新登陆也无效

t_model_list:get_model_list:batch_get_model_detail_param: ai_agent::infrastructure::aha_net::aha_net_client: [AhaNetHTTPClient] url https://coresg-normal.trae.ai/api/ide/v1/batch_get_detail_param, response_headers: {“content-type”: “text/html”, “content-length”: “144”, “proxy-status”: “0000201404060102”, “x-tt-trace-host”: “012c7b73e393af65348d6cdf4c63dd1846d2b3fdd5c61ededdb7012ef58ab57e3e2d7a1ee79b605aef505bd583bb1e02e449d681703e5b49430ebe2958e5e7848d”, “x-tt-trace-id”: “00-35eadd96010d6cb677033aabdb4affff-35eadd96010d6cb6-01”, “server”: “TLB”, “x-tt-logid”: “202607061333458FF8E7739972904D1588”, “expires”: “Mon, 06 Jul 2026 05:33:45 GMT”, “cache-control”: “max-age=0, no-cache, no-store”, “pragma”: “no-cache”, “date”: “Mon, 06 Jul 2026 05:33:45 GMT”, “x-cache”: “TCP_MISS from a95-101-30-205.deploy.akamaitechnologies.com (AkamaiGHost/22.5.4-b620ca40a6c21d08122eeb20d0541579) (-)”, “strict-transport-security”: “max-age=31536000 ; includeSubDomains”, “x-tt-trace-tag”: “id=16;cdn-cache=miss;type=dyn”, “server-timing”: “cdn-cache; desc=MISS, edge; dur=0, origin; dur=191”, “x-origin-response-time”: “191,95.101.30.205”, “x-akamai-request-id”: “3ac78cfa”, “tt-api-source-5xx”: “1”, “x-net-sdk-domain-dispatch-info”: “origin_domain=coresg-normal.trae.ai;final_domain=coresg-normal.trae.ai”, “x-net-info.remoteaddr”: “23.214.168.118:443”, “x-request-id”: “req_aa372182-69a1-4933-8495-0c1ed4ab137d”} trace_id=“54c55426f54732ec8d0e3e600f961a2c” req=ModelListRequest { scene: Builder, agent_type: None, current_config_info: None, mode_type: None } req=BatchDetailParamRequest { functions: [“builder”], agent_type: “”, current_config_info: CurrentConfigInfo { config_name: “”, is_custom_model: false }, mode_type: Manual, access_type: Default, ab_force_vids: “”, ab_autotest_advanced_mode: 0 }

2026-07-06T13:33:32.421046+08:00 ERROR process_ipc_request:route: ai_agent::handler::base: [BaseHandler] [send_error] error: ErrorResponse { code: -1, message: “\r\n404 Not Found\r\n\r\n

404 Not Found
\r\n
TLB\r\n\r\n\r\n”, data: None, reply_to_message_id: None } trace_id=“54c55426f54732ec8d0e3e600f961a2c”
2026-07-06T13:33:32.421229+08:00 INFO process_ipc_request:route: ai_agent::handler: route end: response_size_bytes: Some(334) trace_id=“54c55426f54732ec8d0e3e600f961a2c”

2026-07-06T13:33:32.421498+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnResponseStarted id=req_cfa11789-7069-4b01-87e6-60085cb60f78, status=204 No Content, headers_count=26

2026-07-06T13:33:32.422611+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnComplete id=req_cfa11789-7069-4b01-87e6-60085cb60f78, code=0, success=true

2026-07-06T13:33:32.428651+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnResponseStarted id=req_9cb87fb5-7d70-4cd8-bf94-6ffacfc27e70, status=204 No Content, headers_count=26

2026-07-06T13:33:32.430329+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnComplete id=req_9cb87fb5-7d70-4cd8-bf94-6ffacfc27e70, code=0, success=true

2026-07-06T13:33:32.433742+08:00 INFO ai_agent::infrastructure::towel::rpc: [rpc] register_session_client: session=760269d8-98f0-41e6-8655-1979b220bf6d

2026-07-06T13:33:32.434186+08:00 INFO process_ipc_request: ai_agent::infrastructure::towel::rpc: [RPC] process_ipc_request called!, channel_id: b69d0d90-275e-4412-abad-5efe74ba06cc, trace_id: 909fdcb5844a41d72470e69802ce717d, service: “core_memory”, method: “get_core_memories” trace_id=“909fdcb5844a41d72470e69802ce717d”

2026-07-06T13:33:32.434399+08:00 INFO process_ipc_request:route: ai_agent::handler::base: [Request->AgentContext] agent_run_info=None trace_id=“909fdcb5844a41d72470e69802ce717d”

2026-07-06T13:33:32.434440+08:00 INFO process_ipc_request:route: ai_agent::handler: route: service:“core_memory”, method:“get_core_memories”, connect_session_id:“760269d8-98f0-41e6-8655-1979b220bf6d” trace_id=“909fdcb5844a41d72470e69802ce717d”

2026-07-06T13:33:32.437255+08:00 INFO process_ipc_request:route: ai_agent::handler: route end: response_size_bytes: Some(180) trace_id=“909fdcb5844a41d72470e69802ce717d”

2026-07-06T13:33:32.447247+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnResponseStarted id=req_090fa146-fcb6-4aa8-b7ad-c20abd8ace13, status=200 OK, headers_count=24

2026-07-06T13:33:32.448750+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnComplete id=req_090fa146-fcb6-4aa8-b7ad-c20abd8ace13, code=0, success=true

2026-07-06T13:33:32.449013+08:00 INFO process_ipc_request:route:get_model_selection_mode_info: ai_agent::infrastructure::aha_net::aha_net_client: [AhaNetHTTPClient] url https://coresg-normal.trae.ai/api/v1/commercial/chat_mode, response_headers: {“content-type”: “application/json”, “x-send-ts”: “1783316025848”, “x-recv-ts”: “1783316025810”, “x-tt-logid”: “20260706133345C5B2CB307D59344EE48B”, “server-timing”: “cdn-cache; desc=MISS, edge; dur=0, origin; dur=234”, “x-tt-trace-host”: “012c7b73e393af65348d6cdf4c63dd1846d2b3fdd5c61ededdb7012ef58ab57e3e2d7a1ee79b605aef505bd583bb1e02e4b84dd4eca5211e727d0e24ebfdce2df1cd89e42051c10d4d339572df0d90e7c5986b9ffbcaea335e18284d0f0e82650c”, “x-tt-trace-id”: “00-35eadd95010d9a030f89fea3b715ffff-35eadd95010d9a03-01”, “server”: “TLB”, “content-encoding”: “gzip”, “expires”: “Mon, 06 Jul 2026 05:33:45 GMT”, “cache-control”: “max-age=0, no-cache, no-store”, “pragma”: “no-cache”, “date”: “Mon, 06 Jul 2026 05:33:45 GMT”, “content-length”: “182”, “x-cache”: “TCP_MISS from a95-101-30-205.deploy.akamaitechnologies.com (AkamaiGHost/22.5.4-b620ca40a6c21d08122eeb20d0541579) (-)”, “vary”: “Accept-Encoding”, “strict-transport-security”: “max-age=31536000 ; includeSubDomains”, “x-tt-trace-tag”: “id=16;cdn-cache=miss;type=dyn”, “x-origin-response-time”: “234,95.101.30.205”, “x-akamai-request-id”: “3ac78cf9”, “x-net-sdk-domain-dispatch-info”: “origin_domain=coresg-normal.trae.ai;final_domain=coresg-normal.trae.ai”, “x-net-info.remoteaddr”: “23.214.168.118:443”, “x-request-id”: “req_090fa146-fcb6-4aa8-b7ad-c20abd8ace13”} trace_id=“1f1b4ad4d2506e92443c549d3ec1dc2b” req=GetModelSelectionModesRequest

2026-07-06T13:33:32.449388+08:00 INFO process_ipc_request:route: ai_agent::handler::model: get_model_selection_modes res GetModelSelectionModesResponseData { mode_list: [ModelSelectionModeConfig { mode_type: Auto, trae_request_type: Some(1), description: “”, default_status: true, discount: “1”, upgrade_fee: Some(“”), max_use_flag: None, is_unimodal: None }, ModelSelectionModeConfig { mode_type: Auto, trae_request_type: Some(2), description: “”, default_status: true, discount: “1”, upgrade_fee: Some(“”), max_use_flag: None, is_unimodal: None }, ModelSelectionModeConfig { mode_type: Auto, trae_request_type: Some(0), description: “”, default_status: true, discount: “1”, upgrade_fee: Some(“”), max_use_flag: None, is_unimodal: None }, ModelSelectionModeConfig { mode_type: Max, trae_request_type: Some(1), description: “”, default_status: false, discount: “”, upgrade_fee: Some(“”), max_use_flag: Some(true), is_unimodal: None }, ModelSelectionModeConfig { mode_type: Max, trae_request_type: Some(2), description: “”, default_status: false, discount: “”, upgrade_fee: Some(“”), max_use_flag: Some(true), is_unimodal: None }, ModelSelectionModeConfig { mode_type: Max, trae_request_type: Some(0), description: “”, default_status: false, discount: “”, upgrade_fee: Some(“”), max_use_flag: Some(true), is_unimodal: None }] } trace_id=“1f1b4ad4d2506e92443c549d3ec1dc2b”

2026-07-06T13:33:32.449561+08:00 INFO process_ipc_request:route: ai_agent::handler: route end: response_size_bytes: Some(1081) trace_id=“1f1b4ad4d2506e92443c549d3ec1dc2b”

2026-07-06T13:33:32.516574+08:00 INFO invoke:invoke_direct_ide: ai_agent::infrastructure::adapter::ide_command: [IDECommandAdapter] Command ID: “icube.event.getABTestConfigByKey”, Execution Time: 103.0296ms, session_id: “760269d8-98f0-41e6-8655-1979b220bf6d”, channel_id: Some(“40e049b9-41bb-4019-9135-5c73e59163f9”), error: None command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) disable_log=None command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) extra_fields=None disable_log=None

2026-07-06T13:33:32.516796+08:00 INFO ai_agent::infrastructure::adapter::ide_command::icube_abtest_config: [IDECommandAdapter] ABTestTraeSecurityReviewSkill updated, config: ABTestTraeSecurityReviewSkill { enable: false, default_in_use: false }

2026-07-06T13:33:32.516872+08:00 INFO ai_agent::domain::skill::sync: [BuiltinSkillSync] Got TRAE-security-review AB config: enable=false

2026-07-06T13:33:32.517182+08:00 INFO invoke:invoke_direct_ide: ai_agent::infrastructure::towel::ipc: [aha_ipc] send: channel=43f04755-36d6-4a52-ba5d-1d20044628bb, session=Some(“760269d8-98f0-41e6-8655-1979b220bf6d”), bytes=394 command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) disable_log=None command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) extra_fields=None disable_log=None

2026-07-06T13:33:32.517242+08:00 INFO invoke:invoke_direct_ide: ai_agent::infrastructure::towel::ipc: [aha_ipc] notify via client for session=760269d8-98f0-41e6-8655-1979b220bf6d command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) disable_log=None command_id=“icube.event.getABTestConfigByKey” timeout_ms=Some(3000) extra_fields=None disable_log=None

2026-07-06T13:33:32.546671+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnResponseStarted id=req_75ff0d39-1b36-49f4-b0ff-f867c83a3dca, status=404 Not Found, headers_count=23

2026-07-06T13:33:32.548331+08:00 INFO byted_aha_ffi::aha_net::http: [aha_net] OnComplete id=req_75ff0d39-1b36-49f4-b0ff-f867c83a3dca, code=0, success=true

2026-07-06T13:33:32.548631+08:00 INFO batch_get_model_detail_param: ai_agent::infrastructure::aha_net::aha_net_client: [AhaNetHTTPClient] url https://coresg-normal.trae.ai/api/ide/v1/batch_get_detail_param, response_headers: {“content-type”: “text/html”, “content-length”: “144”, “proxy-status”: “0000201404060102”, “x-tt-trace-host”: “012c7b73e393af65348d6cdf4c63dd184699f6e6b7b6a991efe98320bd3469bd6d4f52b59472b1848eeddee3a7e7704d12314a8f036912eed6ef708abb5e1647e83cb468c9debd98362bfa81fb99545619”, “x-tt-trace-id”: “00-35eade9c010a2092924b3b11fccaffff-35eade9c010a2092-01”, “server”: “TLB”, “x-tt-logid”: “20260706133345732D2DB04DD28A54D018”, “x-origin-response-time”: “3,23.210.250.158”, “x-akamai-request-id”: “1a7850e5.3ac78d82”, “expires”: “Mon, 06 Jul 2026 05:33:45 GMT”, “cache-control”: “max-age=0, no-cache, no-store”, “pragma”: “no-cache”, “date”: “Mon, 06 Jul 2026 05:33:45 GMT”, “x-cache”: “TCP_MISS from a95-101-30-205.deploy.akamaitechnologies.com (AkamaiGHost/22.5.4-b620ca40a6c21d08122eeb20d0541579) (-)”, “x-cache-remote”: “TCP_MISS from a23-210-250-158.deploy.akamaitechnologies.com (AkamaiGHost/22.5.4-b620ca40a6c21d08122eeb20d0541579) (-)”, “strict-transport-security”: “max-age=31536000 ; includeSubDomains”, “x-tt-trace-tag”: “id=16;cdn-cache=miss;type=dyn”, “server-timing”: “cdn-cache; desc=MISS, edge; dur=64, origin; dur=3”, “x-parent-response-time”: “67,95.101.30.205”, “tt-api-source-5xx”: “1”, “x-net-sdk-domain-dispatch-info”: “origin_domain=coresg-normal.trae.ai;final_domain=coresg-normal.trae.ai”, “x-net-info.remoteaddr”: “23.214.168.118:443”, “x-request-id”: “req_75ff0d39-1b36-49f4-b0ff-f867c83a3dca”} req=BatchDetailParamRequest { functions: [“ui_builder_v2”, “solo_coder”, “chat_v3”, “solo_builder”, “builder_v3”, “builder”, “chat”, “inline_chat”, “git_ai”, “custom_agent_generation”, “utils”, “code_reviewer”, “code_review_summary”, “solo_agent”, “solo_agent_remote”, “solo_work_remote”, “solo_agent_lite”, “solo_work_lite”, “solo_design_lite”, “solo_design_remote”, “multimodal”, “system_diagnosis”], agent_type: “”, current_config_info: CurrentConfigInfo { config_name: “”, is_custom_model: false }, mode_type: Manual, access_type: Default, ab_force_vids: “”, ab_autotest_advanced_mode: 0 }

2026-07-06T13:33:32.548900+08:00 WARN ai_agent::domain::model::model_mgr: [model mgr] batch sync failed: failed to fetch model configs: batch HTTP error: http request error: status_code 404,

404 Not Found
404 Not Found
TLB

感谢提供详细的日志和截图~从日志里看,是获取模型列表时请求 batch_get_detail_param 接口返回了 404 Not Found。既然你已经排除了网络、代理和登录状态的问题,这很可能是服务端异常或者版本兼容问题。

这个我在知识库里暂时没翻到准确的说明,不太敢给你拍脑袋的步骤。建议查 docs.trae.cn 或发邮件到 feedback@mail.trae.ai(看日志你请求的是国际版域名)跟客服确认下,研发同学会跟进排查~

另外,如果你的 TRAE 不是最新版本,也可以尝试通过菜单栏「帮助 → 检查更新」升级到最新版看看能不能恢复。有其他问题随时叫我 :blush:

TRAE
版本: 3.5.73
VSCode 版本: 1.107.1
提交: db5b093238352f03dfdbe761b4e182ab6b77e960
日期: 2026-07-03T08:02:20.708Z
Electron: 39.2.7-release.1.42.2 (aha)
Node.js: 22.21.1
V8: 14.2.231.27-electron.0
OS: Windows_NT x64 10.0.26200
构建版本: 2.3.50210
设备ID: f5b87b8cfb37c31ec4a52fbe248e8175
Device Id: 17803395937176555028

辛苦发一个完整的日志,是在本地出现的吗?

是的本地出现,重装系统了,也还是不行,

20260706T172551.zip (103.9 KB)

看到不到吗?等了两天了

已经反馈研发了哈,需要时间排查。

model_list 失败 - 网络问题排查

你好,get_model_list 失败且换网络、代理、重启登录都无效,需要深入排查。

排查步骤

  1. DNS 检查

    nslookup forum.trae.cn
    # 或
    ping api.trae.cn
    
  2. 防火墙/安全软件

    • 检查是否有防火墙规则阻止了 Trae 的网络请求
    • 临时关闭安全软件测试
  3. Hosts 文件

    # 检查是否有异常 hosts 配置
    cat /etc/hosts  # macOS/Linux
    type C:\Windows\System32\drivers\etc\hosts  # Windows
    
  4. 证书问题

    • 检查系统时间是否正确(SSL 证书验证依赖时间)
    • 尝试在浏览器中访问 https://forum.trae.cn
  5. 代理详细配置

    • 在 Trae 设置中配置代理
    • 确认代理类型(HTTP/SOCKS5)和端口正确
  6. 日志分析

    • 从错误日志中提取完整的错误堆栈
    • 查找 aha_net_client 相关的详细错误信息

请提供完整的错误日志以便进一步诊断。