{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/pilot/issues/136","repository_url":"https://api.github.com/repos/fastlane/pilot","labels_url":"https://api.github.com/repos/fastlane/pilot/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/pilot/issues/136/comments","events_url":"https://api.github.com/repos/fastlane/pilot/issues/136/events","html_url":"https://github.com/fastlane/pilot/issues/136","id":132769111,"number":136,"title":"Improve error message when auth token expires while waiting for \"iTunes Connect to process the new build\"","user":{"login":"kommen","id":258,"avatar_url":"https://avatars.githubusercontent.com/u/258?v=3","gravatar_id":"","url":"https://api.github.com/users/kommen","html_url":"https://github.com/kommen","followers_url":"https://api.github.com/users/kommen/followers","following_url":"https://api.github.com/users/kommen/following{/other_user}","gists_url":"https://api.github.com/users/kommen/gists{/gist_id}","starred_url":"https://api.github.com/users/kommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kommen/subscriptions","organizations_url":"https://api.github.com/users/kommen/orgs","repos_url":"https://api.github.com/users/kommen/repos","events_url":"https://api.github.com/users/kommen/events{/privacy}","received_events_url":"https://api.github.com/users/kommen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T17:42:45Z","updated_at":"2016-02-10T22:14:03Z","closed_at":null,"body":"Every time I use pilot to upload a build and iTunes Connect is again slow with processing builds, I get an error like this after about a while:\r\n\r\n```\r\n[17:14:28]: Waiting for iTunes Connect to process the new build\r\n[17:15:00]: Waiting for iTunes Connect to process the new build\r\n[17:15:32]: Waiting for iTunes Connect to process the new build\r\n[17:16:58]: Variable Dump:\r\n[17:16:58]: {:PLATFORM_NAME=>nil, :LANE_NAME=>\"testflight\", :IPA_OUTPUT_PATH=>\"/Users/Deploy/projects/<app>.ipa\", :DSYM_OUTPUT_PATH=>\"/Users/Deploy/projects/<app>.app.dSYM.zip\", :XCODEBUILD_ARCHIVE=>\"/Users/deploy/Library/Developer/Xcode/Archives/2016-02-10/<app> 2016-02-10 16.46.58.xcarchive\", :CERT_FILE_PATH=>\"/Users/Deploy/projects/<app>/certificates/<stripped>.cer\", :CERT_CERTIFICATE_ID=>\"<stripped>\", :SIGH_PROFILE_PATH=>\"/Users/Deploy/projects/<app>/fastlane/profiles/AppStore_<bundleid>.mobileprovision\", :SIGH_PROFILE_PATHS=>[\"/Users/Deploy/projects/<app>/fastlane/profiles/AppStore_<bundleid>\"], :SIGH_UDID=>\"<stripped>\", :SIGH_PROFILE_TYPE=>\"app-store\"}\r\n[17:16:58]: {\"data\"=>nil, \"messages\"=>{\"warn\"=>nil, \"error\"=>[\"Unauthorized access\"], \"info\"=>nil}, \"statusCode\"=>\"ERROR\"}\r\n\r\n+------+-----------+-------------+\r\n|        fastlane summary        |\r\n+------+-----------+-------------+\r\n| Step | Action    | Time (in s) |\r\n+------+-----------+-------------+\r\n| 1    | cocoapods | 7           |\r\n| 2    | gym       | 92          |\r\n| 3    | cert      | 17          |\r\n| 4    | sigh      | 19          |\r\n| 5    | resign    | 89          |\r\n| 6    | pilot     | 1583        |\r\n+------+-----------+-------------+\r\n\r\n[17:16:58]: fastlane finished with errors\r\n-------------------------------------------------------------------------------------------\r\n😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.\r\n👍  This makes resolving issues much easier and helps improve fastlane.\r\n🔒  The reports will be stored securely on getsentry.com.\r\n🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3\r\n-------------------------------------------------------------------------------------------\r\n/Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spaceship-0.19.4/lib/spaceship/client.rb:268:in `parse_response': [!] {\"data\"=>nil, \"messages\"=>{\"warn\"=>nil, \"error\"=>[\"Unauthorized access\"], \"info\"=>nil}, \"statusCode\"=>\"ERROR\"} (Spaceship::Client::UnexpectedResponse)\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spaceship-0.19.4/lib/spaceship/tunes/tunes_client.rb:514:in `build_trains'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spaceship-0.19.4/lib/spaceship/tunes/build_train.rb:48:in `all'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spaceship-0.19.4/lib/spaceship/tunes/application.rb:195:in `build_trains'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spaceship-0.19.4/lib/spaceship/tunes/application.rb:233:in `all_processing_builds'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:73:in `block in wait_for_processing_build'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:70:in `loop'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:70:in `wait_for_processing_build'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:21:in `upload'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/actions/pilot.rb:18:in `run'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:129:in `block in execute_action'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:128:in `chdir'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:128:in `execute_action'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/fast_file.rb:149:in `method_missing'\r\n\tfrom Fastfile:34:in `block in parsing_binding'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/lane.rb:36:in `call'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/lane.rb:36:in `call'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:52:in `block in execute'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:46:in `chdir'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:46:in `execute'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/lib/fastlane/command_line_handler.rb:30:in `handle'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/bin/fastlane:38:in `block (2 levels) in run'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/bin/fastlane:150:in `run'\r\n\tfrom /Users/Deploy/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fastlane-1.57.0/bin/fastlane:156:in `<top (required)>'\r\n\tfrom /Users/deploy/.rbenv/versions/2.2.0/bin/fastlane:23:in `load'\r\n\tfrom /Users/deploy/.rbenv/versions/2.2.0/bin/fastlane:23:in `<main>'\r\n```\r\n\r\nIt looks like for some reason (probably a timeout?) the auth token expires. It would be nice to have this case handled more gracefully, as it seems to me it's kinda likely to run into it. For me, I see this more often than a processed build before the token expires.\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/pilot/issues/comments/182603236","html_url":"https://github.com/fastlane/pilot/issues/136#issuecomment-182603236","issue_url":"https://api.github.com/repos/fastlane/pilot/issues/136","id":182603236,"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-02-10T22:14:03Z","updated_at":"2016-02-10T22:14:03Z","body":"I don't think it's an expired token, but just random server errors/timeouts. This should be fixed with this PR as far as I know https://github.com/fastlane/spaceship/pull/235"}}