{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5798","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5798/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5798/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5798/events","html_url":"https://github.com/fastlane/fastlane/issues/5798","id":171996882,"number":5798,"title":"Spaceship– 'Bad Request' and crash on `match development`","user":{"login":"cartfisk","id":8764375,"avatar_url":"https://avatars.githubusercontent.com/u/8764375?v=3","gravatar_id":"","url":"https://api.github.com/users/cartfisk","html_url":"https://github.com/cartfisk","followers_url":"https://api.github.com/users/cartfisk/followers","following_url":"https://api.github.com/users/cartfisk/following{/other_user}","gists_url":"https://api.github.com/users/cartfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/cartfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartfisk/subscriptions","organizations_url":"https://api.github.com/users/cartfisk/orgs","repos_url":"https://api.github.com/users/cartfisk/repos","events_url":"https://api.github.com/users/cartfisk/events{/privacy}","received_events_url":"https://api.github.com/users/cartfisk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-18T20:47:01Z","updated_at":"2016-08-18T21:21:01Z","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\nWhen running match development to generate certificates to share, spaceship crashes while trying to create new ones. Also crashes if there is a generated certificate but you have an empty match repo. To be clear, I am trying to run `match` standalone to troubleshoot, thus why my fastfile includes no mention of it.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n\r\n+-----------------------+------------------------------------------+\r\n|                     Summary for match 0.6.2                      |\r\n+-----------------------+------------------------------------------+\r\n| git_url               | XXXXXXXXXXX |\r\n| type                  | development                              |\r\n| git_branch            | master                                   |\r\n| username              | XXXXXXXXXXX                            |\r\n| keychain_name         | login.keychain                           |\r\n| readonly              | false                                    |\r\n| team_id               | XXXXXXXXXX                               |\r\n| verbose               | false                                    |\r\n| force                 | false                                    |\r\n| shallow_clone         | false                                    |\r\n| force_for_new_devices | false                                    |\r\n| skip_docs             | false                                    |\r\n+-----------------------+------------------------------------------+\r\n\r\n[15:34:19]: Cloning remote git repo...\r\n[15:34:19]: 🔓  Successfully decrypted certificates repo\r\n[15:34:19]: Verifying that the certificate and profile are still valid on the Dev Portal...\r\n[15:34:21]: To not be asked about this value, you can specify it using 'app_identifier'\r\nThe bundle identifier of your app: XXXXXXXXXXX\r\n[15:34:31]: Couldn't find a valid code signing identity in the git repo for development... creating one for you now\r\n\r\n+---------------+----------------------------------------------------+\r\n|                       Summary for cert 1.4.1                       |\r\n+---------------+----------------------------------------------------+\r\n| development   | true                                               |\r\n| force         | true                                               |\r\n| username      | XXXXXXXXXXX                             |\r\n| team_id       | XXXXXXXXXXX                                         |\r\n| keychain_path | /Users/carterkonz/Library/Keychains/login.keychain |\r\n+---------------+----------------------------------------------------+\r\n\r\n[15:34:31]: Starting login with user 'XXXXXXXXXXX'\r\n[15:34:33]: Successfully logged in\r\n[15:34:33]: 🔒  Successfully encrypted certificates repo\r\n\r\nLooking for related GitHub issues on fastlane/fastlane...\r\n\r\n➡️  crash on ad_hoc provisioning profile delete\r\n   https://github.com/fastlane/fastlane/issues/3427 [closed] 1 💬\r\n   08 Mar 2016\r\n\r\n➡️  crash on ad_hoc provisioning profile delete!\r\n   https://github.com/fastlane/fastlane/issues/3485 [closed] 0 💬\r\n   08 Mar 2016\r\n\r\n/Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/2.3.0/json/common.rb:156:in `parse': [!] 784: unexpected token at 'Bad Request' (Faraday::ParsingError)\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/2.3.0/json/common.rb:156:in `parse'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response/parse_json.rb:11:in `block in <class:ParseJson>'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:48:in `parse'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:39:in `process_response'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:32:in `block in call'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:177:in `post'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/client.rb:411:in `block in send_request'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/client.rb:328:in `with_retry'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/client.rb:410:in `send_request'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/client.rb:385:in `request'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/portal/portal_client.rb:284:in `create_certificate!'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.31.2/lib/spaceship/portal/certificate.rb:298:in `create!'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cert-1.4.1/lib/cert/runner.rb:137:in `create_certificate'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cert-1.4.1/lib/cert/runner.rb:37:in `run'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cert-1.4.1/lib/cert/runner.rb:6:in `launch'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/generator.rb:19:in `generate_certificate'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/runner.rb:49:in `certificate'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/runner.rb:17:in `run'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/commands_generator.rb:55:in `block (3 levels) in run'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane_core-0.50.2/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/commands_generator.rb:121:in `run'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/lib/match/commands_generator.rb:12:in `start'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/match-0.6.2/bin/match:6:in `<top (required)>'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/bin/match:23:in `load'\r\n\tfrom /Users/carterkonz/.rbenv/versions/2.3.1/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\nfastlane_version \"1.96.0\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n    ENV[\"SLACK_URL\"] = \"XXXXXX\"\r\n    unlock_keychain(\r\n      path: \"~/Library/Keychains/login.keychain\",\r\n      password: \"XXXXXX\"\r\n    )\r\n\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to Apple TestFlight\"\r\n  desc \"This will also make sure the profile is up to date\"\r\n  lane :dev do\r\n    recreate_schemes(\r\n      project: 'XXXXXX.xcodeproj'\r\n    )\r\n    increment_build_number({\r\n      build_number: latest_testflight_build_number(\r\n        app_identifier: \"XXXXXX\"\r\n      ) + 1\r\n    })\r\n    # match(type: \"appstore\") # more information: https://codesigning.guide\r\n    # Build your app - more options available\r\n    cert\r\n    sigh(\r\n      app_identifier: \"XXXXXX\"\r\n    )\r\n    gym(\r\n      scheme: \"XXXXXX\"\r\n    )\r\n    # Upload to Testflight\r\n    pilot(\r\n      app_identifier: \"XXXXXX\",\r\n      skip_waiting_for_build_processing: true\r\n    )\r\n\r\n  end\r\n\r\n  after_all do |lane|\r\n\r\n  end\r\n\r\n  error do |lane, exception|\r\n\r\n  end\r\nend\r\n\r\n\r\n# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md\r\n# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md\r\n\r\n# fastlane reports which actions are used\r\n# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`): 1.101.0\r\n\r\n- [ ] Do you use bundler to execute fastlane (i.e. `bundle exec fastlane`)?\r\n\r\n- [x] Do you use a Ruby environment manager (e.g. [ ] `chruby`, [x] `rbenv`, [ ] `rvm`)?\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/240860742","html_url":"https://github.com/fastlane/fastlane/issues/5798#issuecomment-240860742","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5798","id":240860742,"user":{"login":"cartfisk","id":8764375,"avatar_url":"https://avatars.githubusercontent.com/u/8764375?v=3","gravatar_id":"","url":"https://api.github.com/users/cartfisk","html_url":"https://github.com/cartfisk","followers_url":"https://api.github.com/users/cartfisk/followers","following_url":"https://api.github.com/users/cartfisk/following{/other_user}","gists_url":"https://api.github.com/users/cartfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/cartfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartfisk/subscriptions","organizations_url":"https://api.github.com/users/cartfisk/orgs","repos_url":"https://api.github.com/users/cartfisk/repos","events_url":"https://api.github.com/users/cartfisk/events{/privacy}","received_events_url":"https://api.github.com/users/cartfisk/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T21:21:01Z","updated_at":"2016-08-18T21:21:01Z","body":"No, this is the first time I have attempted to set up match."}}
{"actor":{"display_login":"cartfisk"}}