fastlane: Unauthorized Access (Spaceship::UnauthorizedAccessError)

New Issue Checklist

Issue Description

Unauthorized Access on select_team

Command executed
Spaceship::Tunes.client.teams.each do |team|
teamId = team['contentProvider']['contentProviderId']
selected_team = Spaceship::Tunes.select_team(team_id:teamId.to_s)
Complete output when running fastlane, including the stack trace and command used

/Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:941:in handle_error': Unauthorized Access (Spaceship::UnauthorizedAccessError) from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:922:in block in send_request’ from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:677:in with_retry' from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:918:in send_request’ from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:762:in request' from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/client.rb:165:in team_id=’ from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/tunes/tunes_client.rb:87:in select_team' from /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/fastlane-2.204.3/spaceship/lib/spaceship/tunes/spaceship.rb:35:in select_team’

 It was running fine yesterday but today I got that error.  

Environment

🚫 fastlane environment 🚫

Stack

Key Value
OS 12.0.1
Ruby 3.0.2
Bundler? false
Git git version 2.30.1 (Apple Git-130)
Installation Source ~/.rbenv/versions/3.0.2/bin/fastlane
Host macOS 12.0.1 (21A559)
Ruby Lib Dir ~/.rbenv/versions/3.0.2/lib
OpenSSL Version OpenSSL 1.1.1l 24 Aug 2021
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 13.1
Swift Version 5.5.1

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.5.0
atomos 0.1.3
rexml 3.2.5
CFPropertyList 3.0.4
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.21.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.8.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.8.0
multipart-post 2.0.0
word_wrap 1.0.0
optparse 0.1.1
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
excon 0.88.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
ruby2_keywords 0.0.5
faraday 1.8.0
unf_ext 0.0.8
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.4
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.2.5
gh_inspector 1.1.3
json 2.5.1
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.2
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
bundler 2.2.22
simctl 1.6.8
jwt 2.3.0
uber 0.1.0
declarative 0.0.20
trailblazer-option 0.1.1
representable 3.1.1
retriable 3.1.2
mini_mime 1.1.2
memoist 0.16.2
multi_json 1.15.0
os 1.1.1
signet 0.16.0
googleauth 1.1.0
httpclient 2.8.3
webrick 1.7.0
google-apis-core 0.4.1
google-apis-playcustomapp_v1 0.6.0
google-apis-androidpublisher_v3 0.13.0
google-cloud-env 1.5.0
google-cloud-errors 1.2.0
google-cloud-core 1.6.0
google-apis-iamcredentials_v1 0.8.0
google-apis-storage_v1 0.9.0
rake 13.0.3
digest-crc 0.6.4
google-cloud-storage 1.34.1
emoji_regex 3.2.3
jmespath 1.4.0
aws-partitions 1.521.0
aws-eventstream 1.2.0
aws-sigv4 1.4.0
aws-sdk-core 3.121.5
aws-sdk-kms 1.50.0
aws-sdk-s3 1.104.0
tsort 0.1.0
uri 0.10.1
set 1.0.1
forwardable 1.3.2
logger 1.4.3
pathname 0.1.0
shellwords 0.1.0
cgi 0.2.0
date 3.1.0
timeout 0.1.1
stringio 3.0.0
openssl 2.2.0
io-nonblock 0.1.0
ipaddr 1.2.2
io-wait 0.1.0
zlib 1.1.0
resolv 0.2.0
securerandom 0.1.0
digest 3.0.0
time 0.1.0
open-uri 0.1.0
mutex_m 0.1.1
net-protocol 0.1.0
ostruct 0.3.1
english 0.7.1
erb 2.2.0
strscan 3.0.0
abbrev 0.1.0
io-console 0.5.7
tempfile 0.1.1
delegate 0.2.0
fileutils 1.5.0
tmpdir 0.1.2
base64 0.1.0
singleton 0.1.1
net-http 0.1.1
open3 0.1.1
nkf 0.1.0
prettyprint 0.1.0
pp 0.1.0
find 0.1.0
yaml 0.1.1
psych 3.3.0

generated on: 2022-03-17

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 23
  • Comments: 35 (1 by maintainers)

Most upvoted comments

Issue now fixed on fastlane 2.205.0

New issue on new release. Error when running select_team

reverted back to 2.176.0 and it’s working now.

gem uninstall fastlane
gem install fastlane --version 2.176.0

make sure you have ruby 2.7.4 and not 3.0.2

Anybody able to confirm any work around for this issue? @fastlaneTeam this being looked into?

Same issue, I did update to macOS Monterey 12.3 yesterday, perhaps that’s involved somehow?