You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ访问GitLab时出现chunked transfer encoding, state:READING_LENGTH错误

解决IntelliJ中GitLab拉取代码时报错chunked transfer encoding, state:READING_LENGTH的方法

可行修复步骤

  • 切换使用系统Git而非IntelliJ内置Git

    1. 打开IntelliJ设置(Windows/Linux:File > Settings;Mac:IntelliJ IDEA > Settings)
    2. 进入Version Control > Git选项
    3. 在Path to Git executable栏选择本地系统安装的Git路径(如/usr/bin/git或C:\Program Files\Git\bin\git.exe),替换默认的内置Git路径
    4. 点击Test验证配置有效后,重启IntelliJ
  • 清除IntelliJ的Git认证缓存

    1. 进入设置的Appearance & Behavior > System Settings > Passwords
    2. 找到GitLab相关的认证缓存条目并删除
    3. 重启IntelliJ后重新执行拉取操作,按提示重新输入账号密码
  • 改用SSH密钥认证替代HTTPS密码认证

    1. 在GitLab账号的设置中添加本地生成的SSH公钥
    2. 把本地仓库的远程URL从HTTPS格式切换为SSH格式:
      git remote set-url origin git@gitlab.com:你的用户名/你的仓库名.git
      
    3. 回到IntelliJ重新执行拉取操作,无需输入密码即可完成
  • 更新IntelliJ至最新稳定版
    旧版本的IntelliJ可能存在Git网络交互的兼容性Bug,更新后再测试拉取操作


内容的提问来源于stack exchange,提问作者Pranay Kumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 12:58:11