fastlane: Fail to distribute app to external testers with pilot

New Issue Checklist

Issue Description

Complete output when running fastlane, including the stack trace and command used
ios-build  /usr/local/bin/fastlane pilot distribute -a **** -u ***  --app-platform ios --changelog "text" --distribute_external true --wait_for_uploaded_build true --groups "**"
[✔] 🚀 
[16:18:07]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[16:18:07]: Login to iTunes Connect (***)
[16:18:10]: Login successful
[16:19:30]: Successfully set the changelog for build
[16:19:30]: Distributing new build to testers: 2.0 

Looking for related GitHub issues on fastlane/fastlane…

➡️ Waiting for iTunes Connect to finish processing the new build https://github.com/fastlane/fastlane/issues/9664 [closed] 16 💬 29 Nov 2017

🔗 You can ⌘ + double-click on links to open them directly in your browser. /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/spaceship/lib/spaceship/test_flight/client.rb:290:in handle_response': [!] {"code"=>"ITC.response.error.INVALID_REQUEST", "description"=>"Failed to submit build for review."} (Spaceship::UnexpectedResponse) from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/spaceship/lib/spaceship/test_flight/client.rb:72:in post_for_testflight_review’ from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/spaceship/lib/spaceship/test_flight/build.rb:204:in submit_for_testflight_review!' from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/pilot/lib/pilot/build_manager.rb:149:in distribute_build’ from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/pilot/lib/pilot/build_manager.rb:88:in distribute' from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/pilot/lib/pilot/commands_generator.rb:78:in block (2 levels) in run’ from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in call' from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in run’ from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in run_active_command' from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:75:in run!’ from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in run!' from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/pilot/lib/pilot/commands_generator.rb:166:in run’ from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/pilot/lib/pilot/commands_generator.rb:18:in start' from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/fastlane/lib/fastlane/cli_tools_distributor.rb:90:in take_off’ from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.80.0/bin/fastlane:20:in <top (required)>' from /usr/local/bin/fastlane:22:in load’ from /usr/local/bin/fastlane:22:in `<main>'

Environment

fastlane env
[✔] 🚀 
[17:31:44]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[17:31:44]: Generating fastlane environment output, this might take a few seconds...
✅ fastlane environment ✅

Stack

Key Value
OS 10.13.2
Ruby 2.4.1
Bundler? false
Git git version 2.14.3 (Apple Git-98)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.13.2 (17C88)
Ruby Lib Dir /usr/local/Cellar/ruby/2.4.1_1/lib
OpenSSL Version OpenSSL 1.0.2k 26 Jan 2017
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.2

System Locale

Variable Value
LANG
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.80.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.1.0
slack-notifier 2.3.2
CFPropertyList 2.3.5
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.3
xcodeproj 1.5.3
rouge 2.0.7
xcpretty 0.2.8
terminal-notifier 1.8.0
unicode-display_width 1.3.0
terminal-table 1.8.0
plist 3.3.0
public_suffix 2.0.5
addressable 2.5.1
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.4
tty-cursor 0.5.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.8
commander-fastlane 4.4.5
excon 0.57.1
faraday 0.12.1
unf_ext 0.0.7.4
unf 0.1.4
domain_name 0.5.20170404
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.0
gh_inspector 1.0.3
json 2.0.2
mini_magick 4.5.1
multi_json 1.12.1
multi_xml 0.6.0
rubyzip 1.2.1
security 0.1.3
xcpretty-travis-formatter 0.0.4
dotenv 2.2.1
bundler 1.15.2
faraday_middleware 0.11.0.1
uber 0.1.0
declarative 0.0.9
declarative-option 0.1.0
representable 3.0.4
retriable 3.0.2
mime-types-data 3.2016.0521
mime-types 3.1
little-plugger 1.1.4
logging 2.2.2
jwt 1.5.6
memoist 0.16.0
os 0.9.6
signet 0.7.3
googleauth 0.5.1
httpclient 2.8.3
google-api-client 0.13.4
openssl 2.0.3
io-console 0.4.6

Hello! Found this issue while trying to distribute binary to external testers with ‘pilot distribute’ . It was successfully uploaded with fastlane deliver and is shown in itunesconnect (it is available for internal testers) but as for external testres - it has “yellow” status “approved” (which is even not mentioned in official apple docs - https://help.apple.com/itunes-connect/developer/#/dev18557d60e) Also it is possible to promote it manualy.

Actually, it seems to be old error - https://github.com/fastlane/fastlane/issues/5123

<center>

504 Gateway Time-out

</center> 2018-02-14 18 24 31

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 20 (5 by maintainers)

Most upvoted comments

I’m also including the changelog, and it is showing up on iTunes Connect. It uploads that first then attempts to distribute to external testers and fails.