无法访问URL:HTTP/1.1 400错误的URI [英] URL could not be accessed: HTTP/1.1 400 Bad URI

查看:97
本文介绍了无法访问URL:HTTP/1.1 400错误的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)

  1. 代理配置不正确
  2. 防火墙配置不正确
  3. 全局环境设置错误(bashrc,配置文件等)
  4. 过时的作曲家版本
  5. 缓慢/降低网络性能
  6. 配置错误的git插件
  7. hosts文件中的设置不正确
  8. SSH隧道配置错误
  1. Proxy is incorrectly configured
  2. Firewall is incorrectly configured
  3. Bad global environment settings (bashrc, profile, etc)
  4. Outdated composer version
  5. Slow/degrading network performance
  6. Misconfigured git addons
  7. Incorrect settings in your hosts file
  8. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆