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! Too many verification codes have been sent. #2497

Closed
ahveecubed opened this issue Aug 15, 2024 · 7 comments
Labels
eas build needs review Issue is ready to be reviewed by a maintainer

Comments

@ahveecubed
Copy link

ahveecubed commented Aug 15, 2024

Build/Submit details page URL

No response

Summary

Unable to build for iOS due to Apple auth issues. This was happening prior to upgrading eas-cli, as well, which is one of the things I did to troubleshoot.

Authentication with Apple Developer Portal failed!
Too many verification codes have been sent. Enter the last code you received or try again later.

Managed or bare?

Managed

Environment

    expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
      Yarn: 1.22.22 - ~/Documents/GitHub/cubrio/app/famtalk/node_modules/.bin/yarn
      npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
    Managers:
      CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
      Android SDK:
        API Levels: 31, 32, 33
        Build Tools: 30.0.2, 31.0.0, 33.0.0
    IDEs:
      Android Studio: 2021.2 AI-212.5712.43.2112.8815526
      Xcode: 15.3/15E204a - /usr/bin/xcodebuild
    npmPackages:
      expo: ^50.0.0 => 50.0.19 
      react: 18.2.0 => 18.2.0 
      react-native: 0.73.6 => 0.73.6 
    npmGlobalPackages:
      eas-cli: 10.2.3
      expo-cli: 6.3.10
    Expo Workflow: bare
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✖ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check native tooling versions
✖ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Detailed check results:

This project has native project folders but also has config plugins, indicating it is configured to use Prebuild. EAS Build will not sync your native configuration if the ios or android folders are present. Add these folders to your .gitignore file if you intend to use prebuild (aka "managed" workflow).

The following packages should be updated for best compatibility with the installed expo version:
  [email protected] - expected version: ~50.0.20
  [email protected] - expected version: ~2.14.0
  [email protected] - expected version: ~3.6.2
Your project may not work correctly until you install the correct versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.

One or more checks failed, indicating possible issues with the project.

Error output

⠋ Logging in...GET https://idmsa.apple.com/appleauth/auth/signin?widgetKey=e0b80c3bf78523bfe80974d320935bfa30add02e1bff88ec2166c6bd5a706c42
⠸ Logging in...200  (GET https://idmsa.apple.com/appleauth/auth/signin?widgetKey=e0b80c3bf78523bfe80974d320935bfa30add02e1bff88ec2166c6bd5a706c42)
POST https://idmsa.apple.com/appleauth/auth/signin
⠧ Logging in...Error: Request failed with status code 409 (POST https://idmsa.apple.com/appleauth/auth/signin)
✔ Logged in, verify your Apple account to continue
GET https://idmsa.apple.com/appleauth/auth
Error: Request failed with status code 500 (GET https://idmsa.apple.com/appleauth/auth)

Internal Server Error: 'd', '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.

Reproducible demo or steps to reproduce from a blank project

Same error is happening for two projects

@ahveecubed ahveecubed added the needs review Issue is ready to be reviewed by a maintainer label Aug 15, 2024
@joshr4
Copy link

joshr4 commented Aug 16, 2024

Seeing a similar thing:

✔ Logged in, verify your Apple account to continue

Internal Server Error: 'd', '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
Submission failed

Was able to build with the below command, but unable to submit the build to Apple

eas build -p ios --non-interactive --profile external

@szdziedzic
Copy link
Member

Hi,

The error

Authentication with Apple Developer Portal failed!
Too many verification codes have been sent. Enter the last code you received or try again later.

doesn't seem to be the same as

Internal Server Error: 'd', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'

🤔

Are these two separate issues you encounter?

When it comes to

Authentication with Apple Developer Portal failed!
Too many verification codes have been sent. Enter the last code you received or try again later.

I think it's just SMS rate limiting on Apple's side. We don't control it, just use their API when it comes to logging in/sending verification codes. I believe that everything should be back to normal after some cooldown period.

@ahveecubed
Copy link
Author

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

The only reason my output shows more is because I had debug logging enabled.

For me they were not separate issues.

I never received any SMS with an OTP from Apple nor a prompt to enter an OTP via the command (eas build). Something seems broken in that handshake on the backend, at least.

@ahveecubed
Copy link
Author

ahveecubed commented Aug 19, 2024

this worked today when trying again. nothing changed on my end but it did prompt for OTP code this time whereas before it never did.

Two-factor Authentication (6 digit code) is enabled for [email protected]. Learn more: https://support.apple.com/en-us/HT204915

✔ Please enter the 6 digit code you received at +1 (•••) •••-••38: … 806508

@TiagoAndreAlmeida
Copy link

@ahveecubed This is happen with me too today after confirm sms code


Internal Server Error: 'd', '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

@OzzyTheGiant
Copy link

For anyone wondering, the issue was really simple, at least for me. All you have to do is login to EAS like:

eas login

Then provide your email and password for expo.com and it should work

@Olekk17
Copy link

Olekk17 commented Dec 24, 2024

I've had a simillar error but Internal Server Error: 'h'. I removed all the Apple-related credentials from the Keychain Access and logged in again manually with password and it resolved this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas build needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

6 participants