fastlane: The URL path is not valid - The resource 'bulkBetaTesterAssignments' does not exist (FastlaneCore::Interface::FastlaneError)
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
bulkBetaTesterAssignments error while adding new testers using fastlane with API Keys
Command executed
fastlane pilot add -a <apple-id> --api_key_path “APIKey.json” --team_id ***** --groups ${bamboo.tester.groups} -f ${bamboo.tester.firstname} -l ${bamboo.tester.lastname} -e ${bamboo.tester.email} --verbose
Complete output when running fastlane, including the stack trace and command used
INFO [2021-01-18 22:42:41.43]: Creating authorization token for App Store Connect API -- 18-Jan-2021 22:42:47 | ERROR [2021-01-18 22:42:47.09]: The URL path is not valid - The resource 'bulkBetaTesterAssignments' does not exist 18-Jan-2021 22:42:47 | /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': [!] Some operations failed: The URL path is not valid - The resource 'bulkBetaTesterAssignments' does not exist (FastlaneCore::Interface::FastlaneError) 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:44:in `handle_multiple' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:101:in `block (2 levels) in run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:166:in `run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:18:in `start' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/bin/fastlane:23:in `<top (required)>' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/fastlane:23:in `load' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/fastlane:23:in `<main>' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `eval' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>' 18-Jan-2021 22:42:47 | /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': Some operations failed: The URL path is not valid - The resource 'bulkBetaTesterAssignments' does not exist (FastlaneCore::Interface::FastlaneError) 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:44:in `handle_multiple' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:101:in `block (2 levels) in run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:166:in `run' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/pilot/lib/pilot/commands_generator.rb:18:in `start' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/bin/fastlane:23:in `<top (required)>' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/fastlane:23:in `load' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/fastlane:23:in `<main>' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `eval' 18-Jan-2021 22:42:47 | from /Users/mobosxbuilder/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>' 18-Jan-2021 22:42:47 | Failing task since return code of [/bin/sh /var/folders/6f/cq53pb957z97l4kydh3bsch40000gn/T/MT-TATTGM-JOB1-5-ScriptBuildTask-5290173111371978382.sh] was 1 while expected 0 18-Jan-2021 22:42:47 | Finished task 'Add Tester to Group' with result: Failed
Environment
[REPLACE THIS WITH YOUR INFORMATION]
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 43 (3 by maintainers)
Reopened! And… actually going to look into tonight/tomorrow 😁
This is still an issue in the latest fastlane version 2.205.2.
I tried an alternative with
fastlane pilot add
but it didn’t work, becausepilot add
also depends onbulkBetaTesterAssignments
…It seems that adding the Create a Beta Tester API to here would work, but unfortunately this implementation does not exist for now. https://developer.apple.com/documentation/appstoreconnectapi/create_a_beta_tester
Hey @joshdholtz any news about this issue?
This issue still occurs in the latest fastlane version 2.204.3.
Fastlane
Stack trace
@nawaahme why did you close this issue? In what way is it resolved?
Seeing the same issue since switching to api key. Do we have any news on this? But I have an additional question: Can I call pilot anyhow in a lane that calls import only? I cannot find a way but running
sh "fastlane pilot import ..."
I am still not able to use this – At this point, looking at this comment here, I believe this is a kind of limitation. So, not sure if I should go ahead and open a new issue here…
I still have the same response using the below code, though:
Spaceship::ConnectAPI.post_bulk_beta_tester_assignments(beta_group_id: groups.first.id, beta_testers: testers)
All the other Spaceship calls were fine connecting Spaceship with my apiKey:
Additionally, I can manage (add/remove) users from a specific TestFlight group using Fastlane pilot, as long as I don’t use it with --api_key_path. The exact same command works fine using the old way to login (inserting the 2FA code).
So, this works:
bundle exec fastlane pilot add my@email.com --app_identifier "my.app.identifier" --groups "2) MYGROUP"
And this doesn’t:
bundle exec fastlane pilot add my@email.com --app_identifier "my.app.identifier" --groups "2) MYGROUP" --api_key_path keys.json
Error:
The URL path is not valid - The resource 'bulkBetaTesterAssignments' does not exist