Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with Apple Developer Portal failed! [Error -36607] #1714

Closed
MaxAst opened this issue Feb 23, 2023 · 73 comments · Fixed by #1719
Closed

Authentication with Apple Developer Portal failed! [Error -36607] #1714

MaxAst opened this issue Feb 23, 2023 · 73 comments · Fixed by #1719

Comments

@MaxAst
Copy link

MaxAst commented Feb 23, 2023

Build/Submit details page URL

No response

Summary

When running eas build -p ios --auto-submit and choose yes when being asked to log in to my Apple account, I get this error:

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. <a target="_blank" 
    href="https://support.apple.com/kb/HT212522 ">Learn more.<span class="sr-only"> Opens in a new window.</span></a>

after getting the error, I do get the Apple ID verification code prompt on my apple devices though, so it might be that the CLI is not able to handle cases where 2fa is required.

eas-cli/3.6.1 darwin-arm64 node-v18.12.1

Managed or bare?

managed

Environment

expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.2
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
Watchman: 2023.02.13.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 3.6.1
expo-cli: 6.3.0
Expo Workflow: managed

Error output

Authentication with Apple Developer Portal failed!
Error: Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. Learn more. Opens in a new window.

Reproducible demo or steps to reproduce from a blank project

eas build -p ios --auto-submit

@MaxAst MaxAst added the needs review Issue is ready to be reviewed by a maintainer label Feb 23, 2023
@MaxAst
Copy link
Author

MaxAst commented Feb 23, 2023

note: I know that this closed issue exists, but I think this is a different error

@MaxAst MaxAst changed the title Authentication with Apple Developer Portal failed! Authentication with Apple Developer Portal failed! [Error -36607] Feb 23, 2023
@AChevallier
Copy link

Hello,
I do have the same problem!

@MaxAst
Copy link
Author

MaxAst commented Feb 23, 2023

fwiw, you can bypass this problem by

  1. choosing no when being asked to log in to your Apple account
  2. download the build's .ipa file from your expo dashboard
  3. submit the .ipa file to App Store Connect via Transporter

@miran248
Copy link

miran248 commented Feb 23, 2023

Got the same error too!
And me being who i am, i ran it twice and got a different error the second time :)

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Service Error -20209. This Apple ID has been locked for security reasons. Visit iForgot to reset your account 
    (https://iforgot.apple.com)

EDIT:
I later ran it again and got the error 36607 again.
After that i ran it again, this time choosing no and this time i had no issues; what's more, a few minutes later i got an email from testflight, saying the app was now available to test.

@GiovanniFerrara
Copy link

Maybe it's related to my specific environment, or I'm doing something wrong.
When I select "no" when being asked to log in to my Apple account I get the question about my credentials again.

@anubra266
Copy link

Got the same error too! And me being who i am, i ran it twice and got a different error the second time :)

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Service Error -20209. This Apple ID has been locked for security reasons. Visit iForgot to reset your account 
    (https://iforgot.apple.com)

I got this too @miran248, had to change apple password to unlock, then got the previous error back

@miran248
Copy link

@anubra266 Try again, and try what @MaxAst suggested above.

fwiw, you can bypass this problem by

  1. choosing no when being asked to log in to your Apple account
  2. download the build's .ipa file from your expo dashboard
  3. submit the .ipa file to App Store Connect via Transporter

@anubra266
Copy link

@anubra266 Try again, and try what @MaxAst suggested above.

fwiw, you can bypass this problem by

  1. choosing no when being asked to log in to your Apple account
  2. download the build's .ipa file from your expo dashboard
  3. submit the .ipa file to App Store Connect via Transporter

@miran248 I run into the same sit
CleanShot 2023-02-23 at 14 05 15@2x
uation as @GiovanniFerrara

@miran248
Copy link

I got this..

eas build --auto-submit --profile sandbox --platform ios
Specified value for "ios.bundleIdentifier" in app.config.js or app.json is ignored because an ios directory was detected in the project.
EAS Build will use the value found in the native code.
✔ Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.
✔ Do you want to log in to your Apple account? … no
No problem! 👌 If any of the next steps will require Apple account access we will ask you again about it.

Skipping Distribution Certificate validation on Apple Servers because we aren't authenticated.
Skipping Provisioning Profile validation on Apple Servers because we aren't authenticated.

Project Credentials Configuration
...

Which version are you using?

eas -v
eas-cli/3.7.0 darwin-x64 node-v19.1.0

@GiovanniFerrara
Copy link

I got this..

eas build --auto-submit --profile sandbox --platform ios
Specified value for "ios.bundleIdentifier" in app.config.js or app.json is ignored because an ios directory was detected in the project.
EAS Build will use the value found in the native code.
✔ Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.
✔ Do you want to log in to your Apple account? … no
No problem! 👌 If any of the next steps will require Apple account access we will ask you again about it.

Skipping Distribution Certificate validation on Apple Servers because we aren't authenticated.
Skipping Provisioning Profile validation on Apple Servers because we aren't authenticated.

Project Credentials Configuration
...

Which version are you using?

➜ eas -v
eas-cli/3.7.0 darwin-x64 node-v19.1.0

eas -v
eas-cli/3.7.0 darwin-arm64 node-v14.20.1

@miran248
Copy link

miran248 commented Feb 23, 2023

@GiovanniFerrara No idea.. Could it be the node version?
eas-cli uses node 18 it seems. Not sure how much that's playing a role.

Maybe it's the operating system. I'm on macos 12.6 (monterey), mbp 13 2020 intel

@AdminGrupoZoe
Copy link

Same problem here

@ilgiapa
Copy link

ilgiapa commented Feb 23, 2023

Same problem here.

eas-cli/3.7.0 darwin-arm64 node-v18.14.2

@SamPoate
Copy link

SamPoate commented Feb 23, 2023

I am getting this error too. As it previously worked without a cli version change, one assumes the issue is on the Apple/Expo auth side.

I believe this is a sit and wait for Expo to resolve now.

FWIW to others coming across this issue. Don't keep trying, as it'll lock your Apple account and you'll have to reset your password.

Edit: Tagging @EvanBacon as he dealt with a similar previous issue.

@GKyomen
Copy link

GKyomen commented Feb 23, 2023

Same problem here.
eas-cli/3.7.0 darwin-x64 node-v18.14.0
Also tried in Mac, Windows and Ubuntu, all those failed.

@d4rky-pl
Copy link

It seems that trying to use eas right now and logging in to your Apple account more than once results in a soft lock of the account. I had to log back in on my Mac after trying and change my password because

Your Apple ID has been locked for security reasons. To unlock it, you must verify your identity.

Looks like eas device:create, eas submit etc. are all affected

@shaneboyar
Copy link

Downgrading to v3.6 gave the same error. It's worth noting that while I received the Authentication with Apple Developer Portal failed! error in the cli. A 2FA code was pushed to my physical device. Its almost as if the CLI just isnt waiting for the 2FA process.

@brentvatne
Copy link
Member

this same issue is occurring on fastlane: fastlane/fastlane#21072
it looks like Apple changed an API without notice. we're going to update for this as soon as possible. for now, indeed, you can skip the authentication part

@brentvatne brentvatne added issue accepted and removed needs review Issue is ready to be reviewed by a maintainer labels Feb 23, 2023
@expo-bot
Copy link
Contributor

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@EvanBacon
Copy link
Contributor

EvanBacon commented Feb 23, 2023

I'm investigating now, need to confirm the new endpoints.

Update:

I can reproduce certain authentication errors, specifically this rate limiting error:

> Request: https://idmsa.apple.com/appleauth/auth/signin
> Response:
Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. <a target="_blank" href="https://support.apple.com/kb/HT212522 ">Learn more.<span class="sr-only"> Opens in a new window.</span></a>

But authentication sometimes works in https://idmsa.apple.com/signin (then timesout instantly). I think Apple may be having some server issues at the moment. I have been able to get EAS CLI authentication working one time a moment ago (using an sms-2fa account) but then it went back to the rate limit issue. I get the same issue using fastlane spaceauth. Going to try adjusting the cookies to see if that helps. FYI, this Fastlane PR only appears to update 2fa device codes using the legacy four digit codes, most people aren't using this.

@EvanBacon
Copy link
Contributor

EvanBacon commented Feb 23, 2023

Ok, I think I got it. Pushing a new version now. Apple appears to be locking accounts using legacy headers, after unlocking your account the new system should work as expected. The issue wasn't related to 2-Factor Authentication so if you get to the 2FA prompt and it fails, then you have encountered a different issue.

@EvanBacon EvanBacon reopened this Feb 23, 2023
@audieleon
Copy link

audieleon commented Feb 24, 2023

Just updated to eas-cli@3.7.1, but I still get an error:
image

This error is different than the one I was receiving this morning, which had the -36607 error code in the error string.

I'm on MacOS, Apple M1 Pro, running Ventura 13.2.1.

@rawestmoreland
Copy link

rawestmoreland commented Feb 24, 2023

I am also getting the error that @audieleon posted ☝️

Screenshot 2023-02-24 at 12 25 38 AM

@garyThrels
Copy link

Waited a few hours before retrying in case it was a rate limit issue but still getting the same result. Also tried rm -rf ~/.app-store before, but nothing changed

Still getting the below error with using eas-cli/3.7.1 darwin-arm64 node-v16.17.0

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Server Error: Unable to sign you in to your Apple ID. Try again later. The following support link is provided by Apple but it may not be 
    relevant: Learn more: https://support.apple.com/kb/HT212522
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Also gets the apple 2fa popup. Not sure if related or as the apple error suggests, I need to wait 24hrs

@flo951
Copy link

flo951 commented Feb 24, 2023

Just updated to eas-cli@3.7.1, but I still get an error: image

This error is different than the one I was receiving this morning, which had the -36607 error code in the error string.

I'm on MacOS, Apple M1 Pro, running Ventura 13.2.1.

Im also experiencing the same error after upgrading to eas-cli@3.7.1

@audieleon
Copy link

Cannot reliably reproduce the error after 3.7.1 but still investigating, there are a few more headers we can try emulating.

What can I do to help you reproduce?

@EvanBacon
Copy link
Contributor

EvanBacon commented Feb 24, 2023

I think I fixed it, please pull the branch for #1719 test it locally and let me know if it works!

Edit: My latest PR appears to definitively solve the -36607 error. Will merge and republish.

@garyThrels
Copy link

garyThrels commented Feb 24, 2023

I think I fixed it, please pull the branch for #1719 test it locally and let me know if it works!

Edit: My latest PR appears to definitively solve the -36607 error. Will merge and republish.

This seems to have worked, was able to login with 2fa and starting a build. Thank you @EvanBacon

@EvanBacon
Copy link
Contributor

🚀 Fix is now published in eas-cli@3.7.2 🚀

@MaxAst
Copy link
Author

MaxAst commented Feb 24, 2023

works like a charm! Thanks a lot for the effort @EvanBacon, @brentvatne, and the rest of the expo team!

@flo951
Copy link

flo951 commented Feb 24, 2023

Thank you very much, now it works

@opmat
Copy link

opmat commented Feb 24, 2023

🚀 Fix is now published in eas-cli@3.7.2 🚀

I can confirm eas-cli@3.7.2 works fine. Thanks everyone

@franckranaivo
Copy link

It's working with the fix. eas-cli@3.7.2. Thanks

@elenitaex5
Copy link

Yep, Using eas-cli@3.7.2 is working fine!

@ioness
Copy link

ioness commented Feb 24, 2023

Working as usual with eas-cli@3.7.2

Thanks!~ <3

@noahkurz
Copy link

This fixed it! Thank you @EvanBacon.

@ian
Copy link

ian commented Feb 24, 2023

3.7.2 is working for us. Thanks for the quick fix.

@67millwood
Copy link

great persistence on this @EvanBacon & @brentvatne ... product worth paying for 💰

@dmitryame
Copy link

it worked for me after upgrade to 3.7.2

@Alan-Graton
Copy link

This new version (3.7.2) worked just fine for me. After updating just ran the build/submit eas command again

@Alan-Graton
Copy link

I am still getting the following error on 3.7.2 - do I just need to wait out the 24 hour period from Apple?

image

I am still getting the following error on 3.7.2 - do I just need to wait out the 24 hour period from Apple?

image

Probably, this happened to me yesterday. I had to await 24h, install this new fix and try again.

@charlesfsl
Copy link

Tried again this morning after leaving it alone all night. I initially tried with 3.7.1, forgetting to update eas-cli, and of course that failed. However everything worked after updating to 3.7.2 without waiting between these two attempts any longer than it took to update eas-cli.

Thanks for the fix!

@LouisSyfer
Copy link

Yes it's working now ! Can log in and build ! Thanks to the Expo Team GG @EvanBacon @brentvatne

@jayganatrate
Copy link

i am still facing Authentication with Apple Developer Portal failed!
Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com

my eas.json

"cli": {
"version": ">= 3.1.1",
"promptToConfigurePushNotifications": false
},
"build": {
"development": {
"ios": {
"simulator": true,
"image": "latest"
},
"android": {
"buildType": "apk"
}
},
"production": {
"ios": {
"credentialsSource":"local",
"image": "latest"
}
}
},
"submit": {
"production": {}
}
}

"eas-cli": "^3.7.2",

@hazirmagron
Copy link

I've updated to eas-cli 3.7.2 but still face the authentication issue, regardless if I select "to log in to my Apple account" or not.

@Denver-sn
Copy link

I've updated to eas-cli 3.7.2 but still face the authentication issue, regardless if I select "to log in to my Apple account" or not.

@hazirmagron have you deleted the cache before trying?

@ahelord
Copy link

ahelord commented Apr 21, 2023

Hello, I have to have a paid Apple Developer account to build locally with eas build --platform ios --local, why do I get this error?

@oliverxuyong
Copy link

oliverxuyong commented Feb 13, 2024

After having 'eas update' installed and 'eas update --branch preview --message "try first updating" ' excuted, I don't see my app on my ios device udpated. (The ios app was installed through testflight.)
Then I thought I might need to run the 'eas build --platform ios' again, but got the following errors (before the 'eas update' installation, this 'eas build...' was good)

WX20240213-004258@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.