New Issue Checklist
Issue Description
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/test_flight/client.rb:321:in `handle_response': [!] <html> (Spaceship::UnexpectedResponse)
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing */platforms/ios/trains/2.3.0/builds. Reason:
<pre> Gone</pre></p>
</body>
</html>
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/test_flight/client.rb:38:in `block in get_builds_for_train'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/client.rb:620:in `with_retry'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/test_flight/client.rb:36:in `get_builds_for_train'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/test_flight/build.rb:115:in `builds_for_train'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/spaceship/lib/spaceship/tunes/application.rb:315:in `all_builds_for_train'
from Fastfile:343:in `block (2 levels) in parsing_binding'
from Fastfile:342:in `each'
from Fastfile:342:in `block in parsing_binding'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
from Fastfile:276:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.121.1/bin/fastlane:23:in `<top (required)>'
from /usr/local/bin/fastlane:22:in `load'
from /usr/local/bin/fastlane:22:in `<main>'
Command executed
lane :spaceship_build_number_plus_one do
fastlane_require 'spaceship'
Spaceship::Tunes.login("foo@bar.de")
app = Spaceship::Tunes::Application.find("foo.bar")
versions = app.all_build_train_numbers
build_versions = []
app.all_build_train_numbers.each do |version|
build = app.all_builds_for_train(train: version).map(&:build_version).max
build_versions.push(build)
end
build_number = build_versions.max.to_i + 1
end
Environment
| | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.121.1 | ✅ Up-To-Date | |

@pparmaei 2.120.0 can not be considered any more at all, as the updates were released to fix problems with that version. Please check if the problem also exists with 2.121.1 and report back - but as your error message is also totally different, and the method you are using is as well, please do so in a new issue you create. I don’t think this has any direct relation to what @volmus reported here. Thanks.
Done: https://github.com/fastlane/fastlane/issues/14889
Using fastlane 2.125.2, the three methods (I know of) to get to a build train or the builds within one are all failing. From the spaceship playground:
My workaround is broken since 2.125.0:
For anyone interested here’s my current workaround:
@volmus @pparmaei I just noticed that I confused you both as you have the both avatar - hazard of reading a few dozens new issues a day across repositories. I apologize.
Problem is that Apple removed some APIs and we are trying to find replacements and get those implemented.
@pparmaei You could help us by creating a new issue and including the whole output including the full stacktrace you are getting and also your
fastlane env(even if for 2.210.0) output. I think your problem is separate from what @volmus reported here, so having its own issue would help us - even if just to track that you update it when 2.212.0 was released.) Thanks.Ok, then https://github.com/fastlane/fastlane/issues/14666#issuecomment-486411041 confuses me.