无法访问URL:HTTP/1.1 400错误的URI [英] URL could not be accessed: HTTP/1.1 400 Bad URI
问题描述
我想通过作曲家创建一个新的laravel项目,但出现此错误
I want to create a new laravel project via composer and I have got this error
[Composer\Downloader\TransportException]
The 'http://packagist.org/p/fideloper/proxy%249271e19129358853986ed3ca9315ced11a42439a57f49537033c3b436a6ff543.json
' URL could not be accessed: HTTP/1.1 400 Bad URI
推荐答案
这个问题在github或其他地方都经常被问到.我几乎会说这应该是社区Wiki条目.我自己也遇到了这个问题,这是要检查并确保它们不是原因的列表(很可能其中一个是原因):
This question gets asked pretty frequently either here, github, or elsewhere. I'd almost say that this should be a community wiki entry. I've ran into this problem myself, as well, and here's a list of things to inspect and ensure they're not the cause (good chance one of them is the cause):
(另外,请提前运行composer diagnose -vvv
,然后查看下面的列表)
(Also, run composer diagnose -vvv
ahead of time, then look at the list below)
- 代理配置不正确
- 防火墙配置不正确
- 全局环境设置错误(bashrc,配置文件等)
- 过时的作曲家版本
- 缓慢/降低网络性能
- 配置错误的git插件
-
hosts
文件中的设置不正确 - SSH隧道配置错误
- Proxy is incorrectly configured
- Firewall is incorrectly configured
- Bad global environment settings (bashrc, profile, etc)
- Outdated composer version
- Slow/degrading network performance
- Misconfigured git addons
- Incorrect settings in your
hosts
file - SSH tunnelling misconfiguration
注意,这的答案很差,实际上不是SO的好格式.
Note This is a poor answer, and isn't a good format for SO, really.
这篇关于无法访问URL:HTTP/1.1 400错误的URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!