{"action":"opened","issue":{"url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/201","repository_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin","labels_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/201/comments","events_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/201/events","html_url":"https://github.com/francoispluchino/composer-asset-plugin/issues/201","id":139560752,"number":201,"title":"Handle VCS endpoint-defined package","user":{"login":"pmaselkowski","id":520283,"avatar_url":"https://avatars.githubusercontent.com/u/520283?v=3","gravatar_id":"","url":"https://api.github.com/users/pmaselkowski","html_url":"https://github.com/pmaselkowski","followers_url":"https://api.github.com/users/pmaselkowski/followers","following_url":"https://api.github.com/users/pmaselkowski/following{/other_user}","gists_url":"https://api.github.com/users/pmaselkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/pmaselkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmaselkowski/subscriptions","organizations_url":"https://api.github.com/users/pmaselkowski/orgs","repos_url":"https://api.github.com/users/pmaselkowski/repos","events_url":"https://api.github.com/users/pmaselkowski/events{/privacy}","received_events_url":"https://api.github.com/users/pmaselkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-09T12:15:28Z","updated_at":"2016-03-09T12:15:28Z","closed_at":null,"body":"When installed package has endpoint-defined dep it fails with unclear error message:\r\n\r\n```\r\n  [Seld\\JsonLint\\ParsingException]                                               \r\n  \"https://bower.herokuapp.com/packages/player-api\" does not contain valid JSON  \r\n  Parse error on line 1:                                                         \r\n  Package not found                                                              \r\n  ^                                                                              \r\n  Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['   \r\n```\r\n\r\nNote: url `https://bower.herokuapp.com/packages/player-api` returns 404 but it's still being parsed.\r\n\r\nMy proposal is to either handle installing from endpoint (probably complicated), or at least display more meaningful message, like \"*Package `player-api` not found while installing `maslosoft-playlist`*\".\r\n\r\nDetails:\r\n\r\nDependencies of installed package:\r\n```json\r\n{\r\n\t\"name\":\"maslosoft-playlist\",\r\n\t  \"dependencies\": {\r\n\t    \"jquery\": \"~2\",\r\n\t    \"font-awesome\": \"fontawesome#~4\",\r\n\t    \"bootstrap\": \"~3\",\r\n\t    \"player-api\": \"https://github.com/vimeo/player-api\" \r\n\t}\r\n}\r\n```\r\n\r\n"}}