{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2427","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2427/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2427/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2427/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2427","id":362163413,"node_id":"MDU6SXNzdWUzNjIxNjM0MTM=","number":2427,"title":"cordova-plugin-googlemaps-sdk for IOS support won't install","user":{"login":"battika","id":1209088,"node_id":"MDQ6VXNlcjEyMDkwODg=","avatar_url":"https://avatars1.githubusercontent.com/u/1209088?v=4","gravatar_id":"","url":"https://api.github.com/users/battika","html_url":"https://github.com/battika","followers_url":"https://api.github.com/users/battika/followers","following_url":"https://api.github.com/users/battika/following{/other_user}","gists_url":"https://api.github.com/users/battika/gists{/gist_id}","starred_url":"https://api.github.com/users/battika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battika/subscriptions","organizations_url":"https://api.github.com/users/battika/orgs","repos_url":"https://api.github.com/users/battika/repos","events_url":"https://api.github.com/users/battika/events{/privacy}","received_events_url":"https://api.github.com/users/battika/received_events","type":"User","site_admin":false},"labels":[{"id":133074247,"node_id":"MDU6TGFiZWwxMzMwNzQyNDc=","url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/labels/need%20more%20information","name":"need more information","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-09-20T12:25:57Z","updated_at":"2018-09-20T20:34:21Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n- [ ] question\r\n- [X] any problem or bug report\r\n\r\n**OS:**  (check one with \"x\")\r\n- [ ] **Android**\r\n- [X] **iOS**\r\n- [ ] **Browser**\r\n\r\n**cordova information:**  (run `$> cordova plugin list`) \r\n\r\n```\r\ncordova-plugin-device 2.0.2 \"Device\"\r\ncordova-plugin-googlemaps 2.4.4 \"cordova-plugin-googlemaps\"\r\ncordova-plugin-ionic-keyboard 2.1.2 \"cordova-plugin-ionic-keyboard\"\r\ncordova-plugin-ionic-webview 2.1.4 \"cordova-plugin-ionic-webview\"\r\ncordova-plugin-splashscreen 5.0.2 \"Splashscreen\"\r\ncordova-plugin-statusbar 2.4.2 \"StatusBar\"\r\ncordova-plugin-whitelist 1.3.3 \"Whitelist\"\r\n```\r\n\r\n\r\n**Current behavior:**\r\nWhen I attempt to install this plugin Google Maps SDK for IOS won't install with the following error:\r\n```\r\nInstalling \"cordova-plugin-googlemaps\" for ios\r\nFetching plugin \"https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0\" via git clone\r\nFailed to install 'cordova-plugin-googlemaps': CordovaError: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0 via git.\r\nEither there is a connection problems, or plugin spec is incorrect:\r\n\tError: git: Command failed with exit code 128 Error output:\r\nCloning into '/var/folders/4p/w0rzq9d1379bs8q2mcvtphxm0000gn/T/git/1537444959684'...\r\nfatal: unable to update url base from redirection:\r\n  asked for: https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0/info/refs?service=git-upload-pack\r\n   redirect: https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0\r\n    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:100:37\r\n    at _rejected (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:864:24)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:890:30\r\n    at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:1142:31)\r\n    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:808:41)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:624:44\r\n    at runSingle (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:137:13)\r\n    at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:125:13)\r\n    at _combinedTickCallback (internal/process/next_tick.js:73:7)\r\n    at process._tickCallback (internal/process/next_tick.js:104:9)\r\nError: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0 via git.\r\nEither there is a connection problems, or plugin spec is incorrect:\r\n\tError: git: Command failed with exit code 128 Error output:\r\nCloning into '/var/folders/4p/w0rzq9d1379bs8q2mcvtphxm0000gn/T/git/1537444959684'...\r\nfatal: unable to update url base from redirection:\r\n  asked for: https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0/info/refs?service=git-upload-pack\r\n   redirect: https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0\r\n```\r\n\r\nIt is strange as it worked before. \r\n\r\nI started a new ionic blank project using the `ionic start` command, added the IOS platform using the `ionic cordova platform add ios` command and attempted to add this plugin but it fails to add. \r\n\r\nIf I copy and paste the [https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0](https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0) URL in the browser it downloads the tar.gz file but not by installing cordova-plugin-googlemaps-sdk. Same error occurs when I attempt to install just the supporting library by running the `cordova plugin add cordova-plugin-googlemaps-sdk` command."},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/423323823","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2427#issuecomment-423323823","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2427","id":423323823,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzMyMzgyMw==","user":{"login":"battika","id":1209088,"node_id":"MDQ6VXNlcjEyMDkwODg=","avatar_url":"https://avatars1.githubusercontent.com/u/1209088?v=4","gravatar_id":"","url":"https://api.github.com/users/battika","html_url":"https://github.com/battika","followers_url":"https://api.github.com/users/battika/followers","following_url":"https://api.github.com/users/battika/following{/other_user}","gists_url":"https://api.github.com/users/battika/gists{/gist_id}","starred_url":"https://api.github.com/users/battika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battika/subscriptions","organizations_url":"https://api.github.com/users/battika/orgs","repos_url":"https://api.github.com/users/battika/repos","events_url":"https://api.github.com/users/battika/events{/privacy}","received_events_url":"https://api.github.com/users/battika/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T20:34:21Z","updated_at":"2018-09-20T20:34:21Z","author_association":"NONE","body":"Thanks @wf9a5m75 for the explanation it actually makes lot of sense.\r\n\r\nThe funny thing is it started working for me out of the blue. I was trying to remove/reinstall the plugin and for some reason it installed correctly. I did not make any changes so I switched to another project where it failed before too and attempted to install the plugin. It was successful too. Finally, I created a new project with Ionic, added the IOS platform and this plugin. It worked fine. So, I suppose it was an intermittent issue for me and it works now. I hope rest of the guys can confirm. \r\n\r\nOn an aside note you can still consider switching back to the old git clone way if the tarball version does not prove to be rock solid on the long run.\r\n\r\nThank you for the attention and dealing with this issue promptly. \r\n\r\n\r\n"}}
{"actor":{"display_login":"battika"}}