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
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):
(Also, run composer diagnose -vvv
ahead of time, then look at the list below)
- 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
Note This is a poor answer, and isn't a good format for SO, really.