{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5903","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5903/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5903/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5903/events","html_url":"https://github.com/fastlane/fastlane/issues/5903","id":173470788,"number":5903,"title":"784: unexpected token at 'Bad Request'","user":{"login":"ziadtamim","id":1026099,"avatar_url":"https://avatars.githubusercontent.com/u/1026099?v=3","gravatar_id":"","url":"https://api.github.com/users/ziadtamim","html_url":"https://github.com/ziadtamim","followers_url":"https://api.github.com/users/ziadtamim/followers","following_url":"https://api.github.com/users/ziadtamim/following{/other_user}","gists_url":"https://api.github.com/users/ziadtamim/gists{/gist_id}","starred_url":"https://api.github.com/users/ziadtamim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziadtamim/subscriptions","organizations_url":"https://api.github.com/users/ziadtamim/orgs","repos_url":"https://api.github.com/users/ziadtamim/repos","events_url":"https://api.github.com/users/ziadtamim/events{/privacy}","received_events_url":"https://api.github.com/users/ziadtamim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/spaceship","name":"spaceship","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-26T14:46:59Z","updated_at":"2016-08-26T18:23:08Z","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\nToday whenever I try to run Match, I get the following error: \r\n`[!] 784: unexpected token at 'Bad Request'`\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n[15:18:08]: Starting login with user 'santanajk@aol.com'\r\n[15:18:11]: Successfully logged in\r\n[15:18:11]: Fetching profiles...\r\n[15:18:12]: No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you\r\n[15:18:17]: Creating new provisioning profile for 'com.intensifystudio.stx' with name 'match Development com.intensifystudio.stx'\r\n[15:18:22]: 🔒  Successfully encrypted certificates repo\r\n\r\nLooking for related GitHub issues on fastlane/fastlane...\r\n\r\n➡️  PEM [!] 784: unexpected token at 'Bad Request'\r\n   https://github.com/fastlane/fastlane/issues/5849 [closed] 3 💬\r\n   a day ago\r\n\r\n➡️  Still getting '757: unexpected token at \"Bad Request\"'\r\n   https://github.com/fastlane/fastlane/issues/5827 [closed] 59 💬\r\n   a day ago\r\n\r\n➡️  \"unexpected token at 'Bad Request'\" from Spaceship when attempting to repair a provisioning profile\r\n   https://github.com/fastlane/fastlane/issues/5813 [closed] 36 💬\r\n   2 days ago\r\n\r\nand 4 more at: https://github.com/fastlane/fastlane/search?q=784:%20unexpected%20token%20at%20'Bad%20Request'&type=Issues&utf8=✓\r\n/Users/ziadtamim/.rvm/rubies/ruby-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/ziadtamim/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/json/common.rb:156:in `parse'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response/parse_json.rb:11:in `block in <class:ParseJson>'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:48:in `parse'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:39:in `process_response'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:32:in `block in call'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:177:in `post'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/client.rb:413:in `block in send_request'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/client.rb:330:in `with_retry'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/client.rb:412:in `send_request'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/client.rb:387:in `request'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/portal/portal_client.rb:370:in `create_provisioning_profile!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/portal/provisioning_profile.rb:230:in `block in create!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/client.rb:330:in `with_retry'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/spaceship-0.31.10/lib/spaceship/portal/provisioning_profile.rb:229:in `create!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/sigh-1.9.0/lib/sigh/runner.rb:113:in `create_profile!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/sigh-1.9.0/lib/sigh/runner.rb:39:in `run'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/sigh-1.9.0/lib/sigh/manager.rb:7:in `start'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/generator.rb:57:in `generate_provisioning_profile'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/runner.rb:84:in `profile'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/runner.rb:21:in `run'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/commands_generator.rb:55:in `block (3 levels) in run'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/commands_generator.rb:121:in `run'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/lib/match/commands_generator.rb:12:in `start'\r\n\tfrom /Users/ziadtamim/.rvm/gems/ruby-2.3.1@global/gems/match-0.6.2/bin/match:6:in `<top (required)>'\r\n\tfrom /Users/ziadtamim/.rvm/rubies/ruby-2.3.1/bin/match:23:in `load'\r\n\tfrom /Users/ziadtamim/.rvm/rubies/ruby-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\n# Customise this file, documentation can be found here:\r\n# https://github.com/fastlane/fastlane/tree/master/fastlane/docs\r\n# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md\r\n# can also be listed using the `fastlane actions` command\r\n\r\n# Change the syntax highlighting to Ruby\r\n# All lines starting with a # are ignored when running `fastlane`\r\n\r\n# If you want to automatically update fastlane if a new version is available:\r\n# update_fastlane\r\n\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.101.0\"\r\n\r\ndefault_platform :ios\r\n\r\nAPP_NAME = \"App Name\"\r\n\r\nplatform :ios do\r\n  before_all do\r\n    ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/T0E8Q...\"\r\n    \r\n  end\r\n\r\n  ##### Apple Member Center ######\r\n\r\n  desc \"Updates the development provisioning profiles\"\r\n  lane :dev_certificates_update do\r\n    match(type: \"development\", app_identifier: BUNDLE_ID, username: USERNAME, readonly: false, force: true)\r\n    match(type: \"development\", app_identifier: BUNDLE_ID_WATCH, username: USERNAME, readonly: false, force: true)\r\n    match(type: \"development\", app_identifier: BUNDLE_ID_WATCH_EXTENSION, username: USERNAME, readonly: false, force: true)\r\n  end\r\n\r\n  desc \"Updates the distribution provisioning profiles\"\r\n  lane :dist_certificates_update do\r\n    match(type: \"appstore\", app_identifier: BUNDLE_ID, username: USERNAME, readonly: false, force: true)\r\n    match(type: \"appstore\", app_identifier: BUNDLE_ID_WATCH, username: USERNAME, readonly: false, force: true)\r\n    match(type: \"appstore\", app_identifier: BUNDLE_ID_WATCH_EXTENSION, username: USERNAME, readonly: false, force: true)\r\n  end\r\n  \r\n  # Test\r\n  desc \"Runs all the tests\"\r\n  lane :test do\r\n    scan\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 :beta do\r\n    install_pods\r\n    build_local\r\n    pilot(skip_waiting_for_build_processing: true)\r\n  end\r\n\r\n  desc \"Deploy a new version to the App Store\"\r\n  lane :deploy_appstore do\r\n    install_pods\r\n    build_local\r\n    deliver(force: true)\r\n  end\r\n\r\n  # Private\r\n  private_lane :build_local do |options|\r\n    increment_build_number({\r\n      build_number: latest_testflight_build_number + 1\r\n    })\r\n    \r\n    gym({ workspace: APP_NAME + \".xcworkspace\",\r\n     output_name: APP_NAME,\r\n     configuration: \"Release\",\r\n     clean: true, \r\n     scheme: APP_NAME })\r\n  end\r\n\r\n  # You can define as many lanes as you want\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n\r\n    slack(\r\n      message: \"Successfully deployed new App Update.\"\r\n    )\r\n  end\r\n\r\n  error do |lane, exception|\r\n    slack(\r\n      message: exception.message,\r\n      success: false\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\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`):\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)? No\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? No\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/242812837","html_url":"https://github.com/fastlane/fastlane/issues/5903#issuecomment-242812837","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5903","id":242812837,"user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T18:23:08Z","updated_at":"2016-08-26T18:23:08Z","body":"Hey @ziadtamim, thanks for submitting this issue. We prepared a fix for the problem with https://github.com/fastlane/fastlane/pull/5908. Could you give it a try before we publish a new release? \r\n\r\n```\r\ngit clone -b spaceship-csrf-fix --single-branch git@github.com:fastlane/fastlane.git\r\ncd fastlane/spaceship\r\n[sudo] gem install bundler\r\nbundle install\r\nrake install\r\n```\r\nand then give it a try again 👍 "}}
{"actor":{"display_login":"KrauseFx"}}