首页 > 其他分享 >git lfs error:batch response: HTTP/2 cannot be used except with TLS

git lfs error:batch response: HTTP/2 cannot be used except with TLS

时间:2022-09-05 17:57:13浏览次数:81  
标签:TLS git HTTP except used cannot response

自己在腾讯云通过gitea架设的git服务器,使用了lfs。

commit和push都很正常,不过换了台机器clone时遇到问题:

git lfs pull
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
batch response: HTTP/2 cannot be used except with TLS
Failed to fetch some objects from 'htpp://....'

     报错的意思是HTTP/2不能与TLS一起工作。在百度和google都找了一圈,看起来都没人遇到过。所以只好自己解决。既然TLS不能跟HTTP/2一起工作,那么其它版本的HTTP行不行呢?所以我搜了一下设置http版本的方法,找到一个命令,试了一下,还真能解决这个问题,留个脚印免得忘了:

git config http.version HTTP/1.1
git lfs pull
Downloading LFS objects:  11% (198/1789), 534 MB | 2.4 MB/s

     

标签:TLS,git,HTTP,except,used,cannot,response
From: https://www.cnblogs.com/bodong/p/16659016.html

相关文章

  • nginx 检测到目标URL存在HTTP HOST头攻击漏洞
    打开网站,用谷歌浏览器查看host      修改nginx配置文件vimnginx.confserver{#内网地址:192.168.59.103 端口号:80,映射到外网:XXX:XXX:XX:XXX:18083......
  • C#实现HTTP访问类HttpHelper
    在项目开发过程中,我们经常会访问第三方接口,如我们需要接入的第三方接口是WebAPI,这时候我们就需要使用HttpHelper调用远程接口了。示例中的HttpHelper类使用Log4Net记录了......
  • Sourcetree 如何关联自己的gitlab仓库
    现在有些企业自己搭建了gitlab服务器,通过sourcetree从企业服务器拉取代码的时候会提示认证失败。今天搞了大半天才搞懂,给我自己做个笔记。添加账户托管服务商选择G......
  • 浏览器输入URL发生了什么:DNS解析、TCP握手、HTTP缓存、重定向、服务器状态码、渲染引
    输入地址,浏览器查找域名的IP地址。浏览器向该IP地址的web服务器发送一个HTTP请求,在发送请求之前浏览器和服务器建立TCP的三次握手,判断是否是HTTP缓存,如果是强制......
  • https://www.oracle.com/au/cloud/free/
      https://www.oracle.com/au/cloud/free/"OracleCloudFree"免费云在线注册关于个人应用的用户在注册和试用的过程中遇到任何问题,公司统一是由一个全球的专门的......
  • http协议工作原理
    HTTP是基于TCP处于应用层的一种协议,与传输层协议不同,它关注的不是像TCP那样的可靠传输,而是站在应用的角度,对传输的信息来具体的使用。HTTP广泛应用于手机APP和浏览......
  • git的用法
    远程仓库是与本地仓库是通过origin来进行交互的,所以本地的分支只有关联origin才能与远程仓库交互master是自动关联origin的,但是其他的分支就要自己手动关联了那么origin是......
  • [AWS] CloudFormation Template Connect Github Version 2 Using CodeStar
    UsingCloudFormationtemplatetocreateCodePipelineshouldbethebestpracticetomaintainapipeline.Therearealotofpostsorvideosonlinethatcante......
  • MLops:我最喜欢的数据科学项目的 Github 项目模板
    MLops:我最喜欢的数据科学项目的Github项目模板source:unsplash.com-@yancyminTLDR:在这个故事中,我将分享一个git项目结构,我经常将其用作数据科学项目的起点,并......
  • docker访问外部https数字证书问题
    一般我们构建的docker镜像使用的都是alpinelinux系统,默认是不带ca-certificates根证书的,导致无法识别外部https携带的数字证书。在访问的时候,会抛出509:certific......