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 failing with 503 status code #2639

Closed
brentvatne opened this issue Oct 19, 2024 · 61 comments
Closed

Comments

@brentvatne
Copy link
Member

brentvatne commented Oct 19, 2024

Edit: see latest comment

We just rolled out a fix in [email protected]. If you run into this issue, upgrade to the latest version of eas-cli.


When authenticating with the Apple Developer Portal through EAS CLI, you may see the following error:

Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later

We are investigating this and expect investigation to take time as the issue involves external services and it is the weekend, currently night time in North America. Thank you for understanding.

@brentvatne brentvatne pinned this issue Oct 19, 2024
@arapocket
Copy link

Thanks

@nicholasareed
Copy link

--non-interactive works for building/submitting, but in the future it would be nice for other commands to have that option (I am trying to eas device:create and get the auth error but have no flags to try). Maybe I'm misunderstanding what the auth error is though, and re-auth is required anyways when adding devices.

@hitesh-y
Copy link

When attempting to build the iOS version of my app using npx eas build -p ios, I encountered the following error:

Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
 

    Error: build command failed.
   
    Are there any options to solve this issue?

@cgrcnr
Copy link

cgrcnr commented Oct 19, 2024

same here

@Niyasp
Copy link

Niyasp commented Oct 19, 2024

Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later .. Same issue Here

@Alberteda
Copy link

Same here, and still experiencing the same error "Authentication with Apple Developer Portal failed!", using the alternative --non-interactive

@suksin
Copy link

suksin commented Oct 19, 2024

same here, tried using --non-interactive but getting same error as op.
it is mentioned on expo status page as well: https://status.expo.dev/

@pwellner
Copy link

Workaround seems to be adding ascAppId to the eas.json file. This Id is found on your App Store Connect page (called Apple Id). I added this number (as a string) to submit.production.ios.ascAppId and submit worked.

@suksin
Copy link

suksin commented Oct 19, 2024

Workaround seems to be adding ascAppId to the eas.json file. This Id is found on your App Store Connect page (called Apple Id). I added this number (as a string) to submit.production.ios.ascAppId and submit worked.

@pwellner can you please share snapshot of eas.json, how did you add it?

@qoobes
Copy link

qoobes commented Oct 19, 2024

@pwellner did this help you when authenticating or submitting to the store? It didn't solve my authentication problems

@michel-reyes
Copy link

This work for me
eas build --platform ios --profile preview --non-interactive

@MariuzM
Copy link

MariuzM commented Oct 19, 2024

I don’t understand how ni works for you guys
image

@brianGammon
Copy link

The --non-interactive flag won't work for those of us who need to generate or regenerate credentials

@mvlach
Copy link

mvlach commented Oct 19, 2024

And what if I'm trying it for the first time - there is no solution, just wait :)

@nodespell
Copy link

same problem here, neither with or without --non-interactive works.

@nicholasareed
Copy link

Rough that Apple did this on a Friday...I'm not expecting any resolution until Monday at least. Apple-induced furlough I suppose for the weekend!

@EddyFromPoker
Copy link

EddyFromPoker commented Oct 19, 2024

+1
I guess, getting rich this weekend plan got postponed

@DanielAmah
Copy link

DanielAmah commented Oct 19, 2024

Try with this

Expo 50.0.17

eas build -p ios --auto-submit-with-profile=production --non-interactive --no-wait

Ensure you have this set in a eas.json

"submit": {
   "production": {
     "ios": {
       "ascAppId": "",
       "appleId": "",
       "appleTeamId": ""
     }
   }
 }

Replace ascAppId, appleID and appleTeamId with yours

@byCedric
Copy link
Member

We just rolled out a fix in [email protected]. If you run into this issue, upgrade to the latest version of eas-cli.

@qoobes
Copy link

qoobes commented Oct 19, 2024

You fucking saints 🥹 Thank you so much

@brianGammon
Copy link

We just rolled out a fix in [email protected]. If you run into this issue, upgrade to the latest version of eas-cli.

Confirmed. Thank you ❤️

@maulik9211
Copy link

I love this community 🫶

@s-alad
Copy link

s-alad commented Oct 19, 2024

GOATS

@mmasiulis
Copy link

mmasiulis commented Oct 19, 2024

It worked once, but I had to cancel the command (was running it locally, but I wanted to create EAS build remotely), so after running the command second time, I'm still getting

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

eas-cli/12.5.4 darwin-arm64 node-v20.18.0

@byCedric
Copy link
Member

@mmasiulis Can you share a screenshot or the logs of what you see? (you can hide the email / team id / other sensitive parts)

@mmasiulis
Copy link

@byCedric Sure,

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? … yes

› Log in to your Apple Developer account to continue
✔ Apple ID: … xxxxxx
› Restoring session /Users/mantasmasiulis/.app-store/auth/[email protected]/cookie
› Team xxxxxx
› Provider xxxxx
✔ Logged in Local session
✔ Bundle identifier registered xxxxxx
✔ Synced capabilities: No updates

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)


Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
This request can not be processed right now - Service not available because of maintenance activities, please try again after some time.'. Retrying after 3 seconds (remaining: 3)

✖ Failed to sync capability identifiers com.peachhealth.app
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
This request can not be processed right now - Service not available because of maintenance activities, please try again after some time.
    Error: build command failed.
Command failed with exit code 1: /Users/mantasmasiulis/.nvm/versions/node/v20.18.0/bin/eas build --platform ios --profile production

@mmasiulis
Copy link

@byCedric Apparently it started working on the next morning, forgot to inform you. Thx for support!

@araadt
Copy link

araadt commented Oct 23, 2024

*[main][~/dev/artemis]$ eas device:create

_(...)_

✔ You're inside the project directory. Would you like to use the _(...)_ account? … yes
› Log in to your Apple Developer account to continue
✔ Apple ID: … _(...)_
› Restoring session /Users/andy/.app-store/auth/_(...)_/cookie
› Team _(...)_
› Using password for _(...)_ from your local Keychain
  Learn more: https://docs.expo.dev/distribution/security#keychain
✔ Logged in New session
› Team _(...)_

_(...)_

Authentication with Apple Developer Portal failed!
An unexpected error occurred while completing authentication
    Error: device:create command failed.

*[main][~/dev/artemis]$ npx eas --version
eas-cli/12.6.0 darwin-arm64 node-v22.9.0

I'm still getting API auth errors (with a known-good password) on version 12.6.0. Does this remain an issue? Is there a way to pull --verbose logs?

@trentcowden
Copy link

Still getting this error!

eas-cli/12.6.0 darwin-arm64 node-v20.15.1

Running eas build with the --non-interactive flag did work in the meantime.

@0xPT
Copy link

0xPT commented Oct 29, 2024

Still getting this error as well on 12.6.1. I downgraded to 12.5.4 and it worked

@bbrowning918
Copy link

Both 12.5.4 and 12.6.2 throw a 503 for me from this call.

In snooping on the request there are header clues xcode gets involved, reported as version: 7.0 (7A120f) which is substantially different to version 16.1 (16B40) which is what I have installed.

Could there be something deeper in @expo/apple-utils where one or more of macOS 15.0.1, arm64 or xcode is tripping up the call to Apple?

eas-cli/12.6.2 darwin-arm64 node-v18.18.2

  EAS CLI 12.6.2 environment info:
    System:
      OS: macOS 15.0.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v18.18.2/bin/yarn
      npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
    Utilities:
      Git: 2.33.0 - /usr/local/bin/git
    npmPackages:
      expo: 51.0.38 => 51.0.38 
      expo-updates: 0.25.27 => 0.25.27 
      react: 18.2.0 => 18.2.0 
      react-native: 0.74.5 => 0.74.5
    Project workflow: managed

@rs-mnl
Copy link

rs-mnl commented Nov 4, 2024

Hi all, errors authenticating with Apple persist for me using eas-cli 12.6.2.

I believe the issue is with keychain access to the local device, probably due to some recent changes with macOS managing secrets or dev tool privileges since Xcode was just updated last week, too.

I have mitigated the issue by prepending EXPO_NO_KEYCHAIN=1 to my build commands like so:

EXPO_NO_KEYCHAIN=1 eas build -p ios --local --profile development
So maybe the root of this issue is not fully resolved, as users still report errors? Or is it their own (mis)configurations? If you append EAS_DEBUG=true to your eas build then you will see exactly where they error with and can investigate further...

I also want to give deep thanks to the project developers and maintainers of Expo and eas-cli for such an excellent developer tool set they have built. I can still remember that to develop iOS apps, you had to create .cer and .mobileprovision creds on Apple's website, downloading/install the files manually, and then softly chant to the current version of Xcode as it verified that you performed the authentication rituals without error

... how far we've come 🥲

@Darren120
Copy link

if ur getting module not found, try updagraing to 12.5.4, and clear ur npx cache

@sugaith
Copy link

sugaith commented Nov 4, 2024

bombs exploding here as well.

In my case it worked updating eas to latest globally and pinning the same version at eas.json ( "cli": { "version": "12.6.2", ...}) and package.json ("eas-cli": "12.6.2")

@mikeislearning
Copy link

mikeislearning commented Nov 6, 2024

I'm getting this error:

Authentication with Apple Developer Portal failed!
The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Not sure if it makes a difference, but my Apple account uses Google Federation via email to authenticate instead of traditional email/password

UPDATE: Read the docs, looks like they don't supported federated apple accounts. womp womp.
https://docs.expo.dev/build/building-on-ci/#optional-provide-an-asc-api-token-for-your-apple-team

@samchencode
Copy link

I'm still getting the error. Two different devices.
I ran eas build and eas device:create on [email protected] and [email protected]

✔ Logged in, verify your Apple account to continue

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    Error: build command failed.

@jameskennethrobinson
Copy link

Totally new expo project, and am getting this error...

@csulit
Copy link

csulit commented Nov 18, 2024

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later

@ahmadtech199
Copy link

ahmadtech199 commented Nov 20, 2024

This is the output I am having, this shows that eas-cli has 7.8.0 version installed, how i fix it?

[email protected] is now available.
To upgrade, run npm install -g eas-cli.
 Proceeding with outdated version.
 
 eas-cli/7.8.2 darwin-arm64 node-v20.9.0

I tried "npm install -g eas-cli" multiple times, but still not updating.

@MariuzM
Copy link

MariuzM commented Nov 20, 2024

This is the output I am having, this shows that eas-cli has 7.8.0 version installed, however in the above command

[email protected] is now available.
To upgrade, run npm install -g eas-cli.
 Proceeding with outdated version.
 
 eas-cli/7.8.2 darwin-arm64 node-v20.9.0

I tried "npm install -g eas-cli" multiple times, but still not updating.

try where eas to see if you have multiple installs

@ahmadtech199
Copy link

ahmadtech199 commented Nov 20, 2024

I removed it, and then installed it again, and it works now.

Thank you

@wasimkham
Copy link

Is anyone else still getting this error? I tried all the steps.

Removing eas and installing it with npm install -g eas-cli on numerous occasions. Removing it manually and with npm. I've tried deleing the entry in keychain it creates and doesn't work. I just get the error:

✔ Logged in, verify your Apple account to continue

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    Error: build command failed.

Could it be my node version?

⇒  eas --version
eas-cli/13.4.1 darwin-arm64 node-v22.11.0

@wasimkham
Copy link

Hi all, errors authenticating with Apple persist for me using eas-cli 12.6.2.

I believe the issue is with keychain access to the local device, probably due to some recent changes with macOS managing secrets or dev tool privileges since Xcode was just updated last week, too.

I have mitigated the issue by prepending EXPO_NO_KEYCHAIN=1 to my build commands like so:

EXPO_NO_KEYCHAIN=1 eas build -p ios --local --profile development So maybe the root of this issue is not fully resolved, as users still report errors? Or is it their own (mis)configurations? If you append EAS_DEBUG=true to your eas build then you will see exactly where they error with and can investigate further...

I must have missed this on my first scan through. This worked for me!! Thank you. What a nightmare. It may be to do with using macOS 15.1. For anyone still having this issue, try this!

@dmateertf
Copy link

None of the solutions seem to be working for me....

eas --version  
eas-cli/13.4.2 darwin-arm64 node-v22.11.0
EAS_DEBUG=true eas build --platform ios --profile production --message "branch:production"
(node:53767) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
    at loadBuiltinModule (node:internal/modules/helpers:114:7)
    at Function._load (node:internal/modules/cjs/loader:1100:17)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
The EAS build profile does not specify a Node.js version. Using the version specified in .nvmrc: v22 
We detected that you are building for the "store" distribution. Resolving the environment for environment variables used during the build to "production". Set the "environment" field in the build profile if you want to specify the environment manually.
No environment variables with visibility "Plain text" and "Sensitive" found for the "production" environment on EAS servers.
Environment variables loaded from the "production" build profile "env" configuration: EXPO_PUBLIC_ENVIRONMENT, EXPO_PUBLIC_API_BASE, EXPO_PUBLIC_VERSION.

✔ Incremented buildNumber from 55 to 56.
✔ 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? … yes

› Log in to your Apple Developer account to continue
✔ Apple ID: … [email protected]
› Using password for [email protected] from your local Keychain
  Learn more
✔ Logged in, verify your Apple account to continue
Two-factor Authentication (6 digit code) is enabled for [email protected]. Learn more: https://support.apple.com/en-us/HT204915

✔ Please select a trusted phone number to send code to › +1 (•••) •••-••92

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
Error: Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    at t.getAppleResponseError (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:856515)
    at block (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:864626)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async j (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:865138)
    at async T (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:863991)
    at async t.requestAsync (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:862469)
    at async t.idmsaRequestAsync (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:736419)
    at async t.sendRequestTokenToSMSAsync (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:751279)
    at async y (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:747910)
    at async m (/Users/****/.nvm/versions/node/v22.11.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:747207)

@jameswagoner
Copy link

Same outcome as dmateertf. Using NPX for eas submit to get the latest version. Also pointed to 12.5.4 and same results.

@AlyceBittar
Copy link

I'm experiencing the same issue as @dmateertf and @jameswagoner as well, I tried changing version back to 12.4.2 and the issue persists.

Screenshot 2024-12-05 at 1 02 07 PM

@schlosser
Copy link

Also seeing this, should re re-open this ticket @byCedric ?

@AlyceBittar
Copy link

I tried using a previous work around mentioned above, where the --non-interactive flag is added to the eas build -p ios cmd which did allow my build to complete, but am still unable to see it in my App Store Connect builds.

@jameswagoner
Copy link

@AlyceBittar

I had the same result. The build is sitting there in Expo dashboard. Ultimately I will just download the build, use Transport (in the app store) to upload. I add a new platform in apple connect, select the uploaded build farther down the page, then save for review.

@j0pp
Copy link

j0pp commented Dec 5, 2024

I am experiencing the same issue running eas build and eas device:create. Also tried to downgrade to 12.5.4 and same issue.

@nickdep217
Copy link

nickdep217 commented Dec 5, 2024

Is anyone else still getting this error? I tried all the steps.

Removing eas and installing it with npm install -g eas-cli on numerous occasions. Removing it manually and with npm. I've tried deleing the entry in keychain it creates and doesn't work. I just get the error:

✔ Logged in, verify your Apple account to continue

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    Error: build command failed.

Could it be my node version?

⇒  eas --version
eas-cli/13.4.1 darwin-arm64 node-v22.11.0

I am experiencing the same thing with version 13.4.2 currently. I have tried some of the flags mentioned above

@szdziedzic
Copy link
Member

Hey,

If you see the InternalServerError from Apple servers thrown after going into 2FA flow, it's actually a separate issue from the one that @byCedric fixed above. Let's track it here: #2698

@expo expo locked and limited conversation to collaborators Dec 6, 2024
@szdziedzic
Copy link
Member

I pinned it so it's easier to find it

@szdziedzic szdziedzic unpinned this issue Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests