fastlane-old/pilot

Cryptic error message when the user does not have Admin access

Closed this issue · 3 comments

When I tried to list the current users using the credentials of a user with the Technical access level:

pilot list --username robots@example.com
[10:30:01]: Login to iTunes Connect (robots@example.com)
[10:30:04]: Login successful
Successfully submitted a crash report. If this is a problem with one of the tools specifically,
please submit an issue on GitHub and attach the following number to it: '2c2e2bfabe98caf5f3953272f0020def'
The crash report has been stored locally '/tmp/sentry_2c2e2bfabe98caf5f3953272f0020def.json'
/opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/spaceship-0.21.0/lib/spaceship/client.rb:300:in `parse_response': [!] {"data"=>nil, "messages"=>{"warn"=>nil, "error"=>["Forbidden"], "info"=>nil}, "statusCode"=>"ERROR"} (Spaceship::Client::UnexpectedResponse)
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/spaceship-0.21.0/lib/spaceship/tunes/tunes_client.rb:714:in `testers'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/spaceship-0.21.0/lib/spaceship/tunes/tester.rb:74:in `all'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/pilot-1.4.1/lib/pilot/tester_manager.rb:76:in `list_testers'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/pilot-1.4.1/lib/pilot/commands_generator.rb:85:in `block (2 levels) in run'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/fastlane_core-0.36.8/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/pilot-1.4.1/lib/pilot/commands_generator.rb:125:in `run'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/pilot-1.4.1/lib/pilot/commands_generator.rb:16:in `start'
    from /opt/rubies/2.2.3/lib/ruby/gems/2.2.0/gems/pilot-1.4.1/bin/pilot:6:in `<top (required)>'
    from /opt/boxen/rbenv/versions/2.2.3/bin/pilot:23:in `load'
    from /opt/boxen/rbenv/versions/2.2.3/bin/pilot:23:in `<main>'

After I bumped that user to the Admin level, the expected list of users was shown.

Duplicate of #85. If you add an app_id (-a) the list will come back.

Closing in favor of #85

This issue was migrated to fastlane/fastlane#3239. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀