Skip to content

[Conn] 在trae用着用着就突然{"error":"Error contacting target API: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))"} (4028) (4028) #74

@choujianlang

Description

@choujianlang

预检查(请逐项确认)

  • hosts 包含 127.0.0.1 api.openai.com 且未被注释(# 开头)
  • 已确认 443 端口未被其他进程占用
  • API URL 只填域名(不包含 /v1
  • 已安装并信任本地 CA 证书(Windows 证书管理器 / macOS 钥匙串)

操作系统

macOS Apple Silicon

系统与内核信息(务必粘贴命令输出)

{"error":"Error contacting target API: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))"} (4028) (4028)

版本信息

2.2.0

你的 API URL

https://coding.dashscope.aliyuncs.com

Trae 中映射的模型 ID

gpt-5

复现步骤(务必具体)

能正常使用,就是时不时就出现那个错误提示

相关日志与截图

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions