亲测解决Bundler HTTPError Could not fetch specs from

这个问题源于ruby的网站连接不上,解决方法是修改网页地址或者网络配置。

环境

win11 + ruby

问题原文

c 复制代码
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from 
https://rubygems.org/ due to underlying error <IO::TimeoutError: Failed to open TCP connection to rubygems.org:443 (Blocking operation timed out!) (https://rubygems.org/specs.4.8.gz)>

解决方法

方法一

打开Gemfile,将https改成http,Open the Gemfile and change first line from this:

c 复制代码
source 'https://www.rubygems.org'

to this

python 复制代码
source 'http://www.rubygems.org'

remove the 's' from 'https'.

方法二

一般方法一就可以解决了,如果不行尝试换一个网络:比如手机wifi。

Change it to another network (mobile hotspot)

方法三

关闭ipv6的配置。

参考

https://stackoverflow.com/a/47392700/15329637

https://stackoverflow.com/questions/51201517/ruby-cant-connect-to-rubygems-org

相关推荐
代码中介商1 天前
HTTPS加密原理:图解安全传输全流程
网络协议·http·https
Rauser Mack1 天前
不懂编程,但是vibe coding一个扫雷游戏
人工智能·python·游戏·html·prompt
放下华子我只抽RuiKe51 天前
FastAPI 全栈后端(二):路由与数据模型
前端·人工智能·react.js·前端框架·html·fastapi
dotnet901 天前
PDF 页面尺寸上限是 14400。iText 直接加载成功的大图可能超过这个限制,需要在 setPageSize 之前等比缩放。
前端·javascript·html
сокол2 天前
【网安-研判-WireShark流量分析】HTTPS流量解密
测试工具·https·wireshark
HelloWorld工程师2 天前
网站开启HTTPS:2步解决Chrome“不安全”提示
chrome·网络协议·https·ssl
神明不懂浪漫2 天前
【第二章】HTML2——表格、表单标签
开发语言·经验分享·笔记·html
雨翼轻尘2 天前
01_HTML基本结构
前端·html·基本结构
木头羊oll2 天前
Uniapp 与 H5 在 App 端的交互
前端·javascript·html
杨超越luckly2 天前
Agent应用指南:利用GET请求获取赛力斯汽车门店位置信息
python·html·汽车·可视化·门店