{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/3603","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/3603/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/3603/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/3603/events","html_url":"https://github.com/fastlane/fastlane/issues/3603","id":139212584,"number":3603,"title":"match: \"UnexpectedResponse\" when trying to do initial \"match development\"","user":{"login":"siburb","id":1744275,"avatar_url":"https://avatars.githubusercontent.com/u/1744275?v=3","gravatar_id":"","url":"https://api.github.com/users/siburb","html_url":"https://github.com/siburb","followers_url":"https://api.github.com/users/siburb/followers","following_url":"https://api.github.com/users/siburb/following{/other_user}","gists_url":"https://api.github.com/users/siburb/gists{/gist_id}","starred_url":"https://api.github.com/users/siburb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siburb/subscriptions","organizations_url":"https://api.github.com/users/siburb/orgs","repos_url":"https://api.github.com/users/siburb/repos","events_url":"https://api.github.com/users/siburb/events{/privacy}","received_events_url":"https://api.github.com/users/siburb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/match","name":"match","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T08:35:16Z","updated_at":"2016-03-08T22:19:20Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [ X ] Updated fastlane to the latest version\r\n- [ X ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nMatch gets a \"UnexpectedResponse\" when trying to run for the first time - we've tried \"match development\" & \"match adhoc\", both fail with the same message. \"match init\" was successful. We've setup a new Apple Developer account specifically for the purpose, and the account logs in to developer.apple.com successfully.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\nSBB-MacBook-Pro:Rec.IT sbb.moko$ match development\r\n\r\n+-----------------------+--------------------------------------------------------+\r\n|                            Summary for match 0.3.0                             |\r\n+-----------------------+--------------------------------------------------------+\r\n| git_url               | https://bitbucket.org/mokosocialmedia/ios-provisioning |\r\n| type                  | development                                            |\r\n| username              | appledev+provisioning@mokosocialmedia.com              |\r\n| app_identifier        | com.mokosocialmedia.Rec-IT                             |\r\n| keychain_name         | login.keychain                                         |\r\n| readonly              | false                                                  |\r\n| verbose               | false                                                  |\r\n| force                 | false                                                  |\r\n| shallow_clone         | true                                                   |\r\n| force_for_new_devices | false                                                  |\r\n+-----------------------+--------------------------------------------------------+\r\n\r\n[16:06:01]: Cloning remote git repo...\r\n[16:06:05]: 🔓  Successfully decrypted certificates repo\r\n[16:06:05]: Verifying that the certificate and profile are still valid on the Dev Portal...\r\n[16:06:35]: 🔒  Successfully encrypted certificates repo\r\nSuccessfully submitted a crash report. If this is a problem with one of the tools specifically,\r\nplease submit an issue on GitHub and attach the following number to it: '1e822fd87ae30905dc710fa8de80ef09'\r\nThe crash report has been stored locally '/tmp/sentry_1e822fd87ae30905dc710fa8de80ef09.json'\r\n/Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/client.rb:300:in `parse_response': [!] {\"creationTimestamp\"=>\"2016-03-08T08:06:34Z\", \"resultCode\"=>0, \"userLocale\"=>\"en_US\", \"protocolVersion\"=>\"QH65B2\", \"requestUrl\"=>\"https://developerservices2.apple.com:443/services/QH65B2/listTeams.action\", \"responseId\"=>\"2e7e4d98-2a3f-4b47-8b8f-8203df49d928\"} (Spaceship::Client::UnexpectedResponse)\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/portal_client.rb:63:in `teams'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/ui/select_team.rb:35:in `select_team'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/portal_client.rb:79:in `select_team'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/spaceship.rb:37:in `select_team'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/spaceship.rb:81:in `select_team'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/spaceship_ensure.rb:20:in `initialize'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:11:in `new'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:11:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:52:in `block (3 levels) in run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:108:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:116:in `<top (required)>'\r\n\tfrom /usr/local/bin/match:23:in `load'\r\n\tfrom /usr/local/bin/match:23:in `<main>'\r\n```\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"1.37.0\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n  end\r\n\r\n  desc \"Bump build number, commit & push to remote\"\r\n  lane :incrementBuild do\r\n\r\n    # Bump build number\r\n    increment_build_number\r\n\r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build number bump by fastlane - buildnumber lane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n\r\n  desc \"Deploy a new build via HockeyApp\"\r\n  lane :hockey do\r\n\r\n    # Bump build number\r\n    increment_build_number\r\n\r\n    # Download and install the latest AdHoc profile\r\n    sigh(\r\n      adhoc: true,\r\n      force: true,\r\n      output_path: \"./fastlane/provisioning\"\r\n    )\r\n\r\n    # Set version number to the one at the top of the CHANGELOG\r\n    readme = File.read(\"../CHANGELOG.md\")\r\n    latest_version = readme.split(\"\\n## \").first\r\n    first_line = latest_version.split(\"\\n\").first\r\n    version_number = first_line.split(\" \")[1]\r\n\r\n    increment_version_number(\r\n        version_number: version_number\r\n    )\r\n\r\n    # Generate release notes from CHANGELOG\r\n    release_notes = latest_version.split(\"\\n\")[1..-1].join(\"\\n\")\r\n    puts release_notes\r\n\r\n    # Create the IPA file - save in Temp folder\r\n    profileUDID = lane_context[SharedValues::SIGH_UDID]\r\n    puts \"Profile UUID: #{profileUDID}\"\r\n    gym(\r\n      xcargs: \"PROVISIONING_PROFILE=#{profileUDID}\",\r\n      scheme: \"xxxxxxx\",\r\n      silent: true\r\n    )\r\n\r\n    # Deploy via HockeyApp\r\n    markdown_type = '1'\r\n    hockey(\r\n      api_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',\r\n      notes_type: markdown_type,\r\n      notes: release_notes\r\n    )\r\n\r\n    # Make sure our directory is clean, except for changes Fastlane has made\r\n    clean_build_artifacts\r\n\r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build number bump by fastlane - hockey lane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n\r\n  desc \"Upload a new build to iTunesConnect\"\r\n  lane :itunes do\r\n\r\n    # Bump build number\r\n    increment_build_number\r\n\r\n    # Make sure everything is committed\r\n    ensure_git_status_clean\r\n\r\n    # Download and install the latest App Store profile\r\n    sigh(\r\n      output_path: \"~/Documents/Temp\"\r\n    )\r\n\r\n    # Create the IPA file - save in Temp folder\r\n    gym(\r\n      scheme: 'xxxxxx',\r\n      silent: true,\r\n      output_directory: \"~/Documents/Temp/\"\r\n    )\r\n\r\n    # Just upload the build - do nothing else\r\n    deliver(\r\n      skip_screenshots: true,\r\n      skip_metadata: true,\r\n      automatic_release: false,\r\n      submit_for_review: false\r\n    )\r\n\r\n    # Make sure our directory is clean, except for changes Fastlane has made\r\n    clean_build_artifacts\r\n\r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build Version Bump by fastlane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n  end\r\n\r\n  error do |lane, exception|\r\n  end\r\nend\r\n```\r\n\r\nMatchfile:\r\n\r\n```ruby\r\ngit_url \"https://bitbucket.org/mokosocialmedia/ios-provisioning\"\r\n\r\ntype \"development\" # The default type, can be: appstore, adhoc or development\r\n\r\napp_identifier \"com.mokosocialmedia.Rec-IT\" \r\nusername \"appledev+provisioning@mokosocialmedia.com\" # Apple Developer Portal username\r\n\r\n# For all available options run `match --help`\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (fastlane -v): v1.66.0\r\nDo you use bundler, rbenv or rvm? NO"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/193994248","html_url":"https://github.com/fastlane/fastlane/issues/3603#issuecomment-193994248","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/3603","id":193994248,"user":{"login":"vpolouchkine","id":915660,"avatar_url":"https://avatars.githubusercontent.com/u/915660?v=3","gravatar_id":"","url":"https://api.github.com/users/vpolouchkine","html_url":"https://github.com/vpolouchkine","followers_url":"https://api.github.com/users/vpolouchkine/followers","following_url":"https://api.github.com/users/vpolouchkine/following{/other_user}","gists_url":"https://api.github.com/users/vpolouchkine/gists{/gist_id}","starred_url":"https://api.github.com/users/vpolouchkine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpolouchkine/subscriptions","organizations_url":"https://api.github.com/users/vpolouchkine/orgs","repos_url":"https://api.github.com/users/vpolouchkine/repos","events_url":"https://api.github.com/users/vpolouchkine/events{/privacy}","received_events_url":"https://api.github.com/users/vpolouchkine/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T22:19:20Z","updated_at":"2016-03-08T22:19:20Z","body":"What happens if you set `--team_name` for `match`? "}}