fastlane: The request could not be completed because: Unauthorized Access
When using fastlane to try to upload a app update it fails with the below response:
The request could not be completed because: Unauthorized Access
Fastlane can communicate with the Apple Developer Portal with no issues, but every-time i need to do work in App Store Connect i get the above error message.
I have tried to delete the /Users/username/.fastlane/spaceship/{email}/cookie that did not do anything, i also tried to change my appleID password and sign-out of all devices, that also did not do anything, which is the solution stated in the past issues i have been able to locate.
Below is the output of Fastlane when it fails:
[14:05:24]: Running lane ios create_appstore_all
. Next time you can do this by directly typing fastlane ios create_appstore_all
🚀.
[14:05:24]: Driving the lane ‘ios create_appstore_all’ 🚀
[14:05:24]: --------------------------------------
[14:05:24]: — Disse er envfiler bliver kørt: —
[14:05:24]: --------------------------------------
[14:05:24]: ▸ xxxxxxxxxxxxxx
[14:05:24]: ---------------------------------------------
[14:05:24]: — Step: ruby ./assets/GenerateManual.rb —
[14:05:24]: ---------------------------------------------
[14:05:24]: $ ruby ./assets/GenerateManual.rb
[14:05:24]: ▸ Opdaterer manual
[14:05:24]: ----------------------------------------------------------
[14:05:24]: — Step: Switch to ios set_environment_variables lane —
[14:05:24]: ----------------------------------------------------------
[14:05:24]: Cruising over to lane ‘ios set_environment_variables’ 🚖
[14:05:24]: Cruising back to lane ‘ios create_appstore_all’ 🚘
[14:05:24]: ------------------------------------------------
[14:05:24]: — Step: Switch to ios create_appstore lane —
[14:05:24]: ------------------------------------------------
[14:05:24]: Cruising over to lane ‘ios create_appstore’ 🚖
[14:05:24]: xxxxxxxxxxxxxxxxxxxxxxx
[14:05:24]: xxxxxxxxxxxxxxxxxxxxxxx
[14:05:24]: xxxxxxxxxxxxxxxxxxxxxxx
[14:05:24]: ---------------------
[14:05:24]: — Step: produce —
[14:05:24]: ---------------------
±---------------±-----------------------------------------------------------+ | Summary for produce 2.204.3 | ±---------------±-----------------------------------------------------------+ | app_identifier | xxxxxxxxxxxxxxxxxxxxxxx | | sku | xxxxxxxxxxxxxxxxxxxxxxx | | app_name | xxxxxxxxxxxxxxxxxxxxxxx | | language | da | | app_version | 1.0 | | company_name | xxxxxxxxxxxxxxxxxxxxxxx. | | username | xxxxxxxxxxxxxxxxxxxxxxx | | platform | ios | | skip_itc | false | | skip_devcenter | false | | team_id | xxxxxxxxxxxxxxxxxxxxxxx | | itc_team_id | xxxxxxxxxxxxxxxxxxxxxxx | ±---------------±-----------------------------------------------------------+
[14:05:28]: [DevCenter] App ‘xxxxxxxxxxxxxxxxxxxxxxx’ already exists, nothing to do on the Dev Center [14:05:57]: -------------------------- [14:05:57]: — Step: notification — [14:05:57]: -------------------------- ±-----------------±------------------------+ | Lane Context | ±-----------------±------------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios create_appstore_all | ±-----------------±------------------------+ [14:05:57]: Unauthorized Access
±-----±---------------------------------------------±------------+ | fastlane summary | ±-----±---------------------------------------------±------------+ | Step | Action | Time (in s) | ±-----±---------------------------------------------±------------+ | 1 | Verifying fastlane version | 0 | | 2 | default_platform | 0 | | 3 | ruby ./assets/GenerateManual.rb | 0 | | 4 | Switch to ios set_environment_variables lane | 0 | | 5 | Switch to ios create_appstore lane | 0 | | 💥 | produce | 32 | | 7 | notification | 0 | ±-----±---------------------------------------------±------------+
[14:05:57]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane…
➡️ download_dsyms
fails to use session from spaceauth
https://github.com/fastlane/fastlane/issues/18763 [closed] 2 💬
13 Sep 2021
➡️ match permission denied https://github.com/fastlane/fastlane/issues/17810 [closed] 11 💬 26 Apr 2021
➡️ Exception type: Spaceship::UnauthorizedAccessError https://github.com/fastlane/fastlane/issues/16510 [closed] 35 💬 17 Sep 2020
and 21 more at: https://github.com/fastlane/fastlane/search?q=The request could not be completed because%3A Unauthorized Access&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
[!] The request could not be completed because: Unauthorized Access
I really hope somebody is able to help, 5 years using fastlane this is the first time this happens.
Best regards Morten
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 19
- Comments: 42 (2 by maintainers)
Same here. Even in Ukraine, probably this is not caused by f*ng russian artillery.
Same issue since yesterday.
Also ended up downgrading in Gemfile:
gem "fastlane", "2.176.0"
This worked for me
I just tried to uninstall and reinstall a older version suggested in another thread:
sudo gem uninstall fastlane sudo gem install fastlane --version 2.176.0
This worked for me…
I solved the issue by following steps:
Updating the fastlane to latest version (2.205.1 in my case)
run this command to update fastlane :
bundle update fastlane
signing in to my apple account from my browser.
Creating app specific password from https://appleid.apple.com/account/manage and adding it to fastFile like this:
default_platform(:ios)
fastlane ios beta
to upload my app to appStoreIf it can help you (https://rvm.io/)
@jan-happy after $sudo gem uninstall fastlane and $sudo gem install fastlane --version 2.176.0 verify the version of $fastlane -v work for me
Same issue for couple of hours now.
Tried cleaning email in spaceship’s folder and re-authenticating. Didn’t help.
Was able to upload it through Xcode’s Organizer, though.
Apple’s Developer Status Page shows everything’s green, as always…
Same issue… seems to be something new that is effecting quite a lot of people.
I tried resetting my password and login in again via 2FA and I have the same problem (even when choosing SMS 2FA)
Same issue…
Same issue 😦
I still have the same issue, I got the error on version 2.205.1 and it still persists in version 2.205.2…
This didn’t work for me.
gem install fastlane -v 2.176.0
gives meERROR: While executing gem ... (NoMethodError) undefined method request' for nil:NilClass
😢✨ Official Update
This appears to be a duplicate of #20071. Going to close this so we can keep everything together in one issue 🙃
make sure you have ruby 2.7.4
Hey, @panderman this can’t be the case. I’m facing the same issue, but I’m able to log into my apple account without fail
Im just glad that its not some obscure settings or something i did accidental on my machine, these things can be hard to debug and fix. So even though its annoying im glad that we are several in the same boat, then we have more brains to try and fix this thing 😃
Same issue 😦(