When using a Composer proxy repository running composer install fails with UnexpectedValueException
[UnexpectedValueException] Unknown package has no name defined ({"dist":{"reference":"0e675a6e08f791ef960dc9c7e392787111a3f0c1","shasum":"","type":"zip","url":"http:\/\/localhost:8081\/composer\/files\/symfony\/monolog-bundle\/v3.11 .1\/0e675a6e08f791ef960dc9c7e392787111a3f0c1"},"source":{"reference":"0e675a6e08f791ef960dc9c7e392787111a3f0c1","type":"git","url":"https:\/\/github.com\/symfony\/monolog-bundle.git"},"support":{"issues":" https:\/\/github.com\/symfony\/monolog-bundle\/issues","source":"https:\/\/github.com\/symfony\/monolog-bundle\/tree\/v3.11.1"},"time":"2025-12-08T07:58:26+00:00","version":"v3.11.1","version_normalized":" 3.11.1.0","notification-url":"https:\/\/packagist.org\/downloads\/"}).
composer.json
{
"name": "test/proxy",
"description": "Test project for proxy",
"repositories": [
{
"type": "composer",
"url": "http://localhost:8081/composer"
}
],
"require": {
"doctrine/orm": "^3",
"symfony/monolog-bundle": "^3.1"
},
"config": {
"secure-http": false
}
}
When using a Composer proxy repository running composer install fails with UnexpectedValueException
[UnexpectedValueException] Unknown package has no name defined ({"dist":{"reference":"0e675a6e08f791ef960dc9c7e392787111a3f0c1","shasum":"","type":"zip","url":"http:\/\/localhost:8081\/composer\/files\/symfony\/monolog-bundle\/v3.11 .1\/0e675a6e08f791ef960dc9c7e392787111a3f0c1"},"source":{"reference":"0e675a6e08f791ef960dc9c7e392787111a3f0c1","type":"git","url":"https:\/\/github.com\/symfony\/monolog-bundle.git"},"support":{"issues":" https:\/\/github.com\/symfony\/monolog-bundle\/issues","source":"https:\/\/github.com\/symfony\/monolog-bundle\/tree\/v3.11.1"},"time":"2025-12-08T07:58:26+00:00","version":"v3.11.1","version_normalized":" 3.11.1.0","notification-url":"https:\/\/packagist.org\/downloads\/"}).composer.json
{ "name": "test/proxy", "description": "Test project for proxy", "repositories": [ { "type": "composer", "url": "http://localhost:8081/composer" } ], "require": { "doctrine/orm": "^3", "symfony/monolog-bundle": "^3.1" }, "config": { "secure-http": false } }