Expo iOS build failing: Received an internal server error from App Store Connect / Developer portal, please try again later

Expo CLI 4.7.3 environment info:
    System:
      OS: Windows 10 10.0.19042
    Binaries:
      Node: 12.16.2 - c:\program files\nodejs\node.EXE
      Yarn: 1.22.11 - C:\Users\redacted\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.4 - c:\program files\nodejs\npm.CMD
    npmPackages:
      expo: ^42.0.0 => 42.0.3
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2
    Expo Workflow: managed

Hi! I’ve been getting the error in the title when trying to build both on my windows/macos machines. I’ve previously made lots of builds that were fine. Haven’t made a build in about two weeks and getting this error since yesterday.

This is de debugged output including the errors (notice the 502 and HTML output). Hope someone can help me out!

Workaround: Just read this! Good to know =) can't build ios : Failed to set up Distribution Certificate - #15 by notbrent

a Log in to your Apple Developer account to continue
✔ Apple ID: … [REDACTED]
› Restoring session /Users/[REDACTED]/.app-store/auth/[REDACTED]/cookie
POST https://developer.apple.com/services-account/[REDACTED]/account/listTeams.action
200 OK (POST https://developer.apple.com/services-account/[REDACTED]/account/listTeams.action)

› Team My name (REDACTED)
GET https://appstoreconnect.apple.com/olympus/v1/session
200 OK (GET https://appstoreconnect.apple.com/olympus/v1/session)

› Provider My name (REDACTED)
✔ Logged in Local session
POST https://developer.apple.com/services-account/[REDACTED]/account/listTeams.action
200 OK (POST https://developer.apple.com/services-account/[REDACTED]/account/listTeams.action)

⠋ Linking bundle identifier com.myapp.myapp
POST https://developer.apple.com/services-account/v1/bundleIds

⠏ Linking bundle identifier com.myapp.myapp
200 OK (POST https://developer.apple.com/services-account/v1/bundleIds)

✔ Bundle identifier registered com.myapp.myapp
⠋ Syncing capabilities
PATCH https://developer.apple.com/services-account/v1/bundleIds/REDACTED

⠇ Syncing capabilities
200 OK (PATCH https://developer.apple.com/services-account/v1/bundleIds/REDACTED)

✔ Synced capabilities
⠋ Checking validity of distribution certificate on Apple Developer Portal...⠋ Fetching Apple distribution certificates
POST https://developer.apple.com/services-account/v1/certificates

⠹ Fetching Apple distribution certificates
200 OK (POST https://developer.apple.com/services-account/v1/certificates)

✔ Fetched Apple distribution certificates
✔ Successfully validated Distribution Certificate against Apple Servers
⠋ Checking validity of push key on Apple Developer Portal...⠋ Fetching Apple push keys
POST https://developer.apple.com/services-account/[REDACTED]/account/auth/key/list

⠹ Fetching Apple push keys
200 OK (POST https://developer.apple.com/services-account/[REDACTED]/account/auth/key/list)

✔ Fetched Apple push keys
✔ Successfully validated Push Key against Apple Servers
⠋ Getting Provisioning Profile info from Apple's Servers...
⠏ Getting Provisioning Profile info from Apple's Servers...
⠏ Fetching Apple provisioning profiles
200 OK (POST https://developer.apple.com/services-account/v1/bundleIds)

⠸ Getting Provisioning Profile info from Apple's Servers...
⠸ Fetching Apple provisioning profiles
200 OK (POST https://developer.apple.com/services-account/v1/bundleIds/REDACTED/profiles)

⠦ Getting Provisioning Profile info from Apple's Servers...
⠦ Fetching Apple provisioning profiles
200 OK (POST https://developer.apple.com/services-account/v1/profiles/REDACTED/bundleId)

⠏ Getting Provisioning Profile info from Apple's Servers...
⠏ Fetching Apple provisioning profiles
200 OK (POST https://developer.apple.com/services-account/v1/profiles/REDACTED/certificates)

✔ Successfully fetched Provisioning Profile REDACTED from Apple Servers
⠋ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
POST https://developer.apple.com/services-account/v1/certificates

⠹ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/v1/certificates)
POST https://developer.apple.com/services-account/v1/bundleIds

⠹ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/v1/bundleIds)
POST https://developer.apple.com/services-account/v1/bundleIds/REDACTED/profiles

⠦ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/v1/bundleIds/REDACTED/profiles)
POST https://developer.apple.com/services-account/v1/profiles/REDACTED/bundleId

⠏ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/v1/profiles/REDACTED/bundleId)
POST https://developer.apple.com/services-account/v1/profiles/REDACTED/devices

⠹ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/v1/profiles/REDACTED/devices)
POST https://developer.apple.com/services-account/[REDACTED]/account/ios/profile/listProvisioningProfiles.action

⠼ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
200 OK (POST https://developer.apple.com/services-account/[REDACTED]/account/ios/profile/listProvisioningProfiles.action)
POST https://developer.apple.com/services-account/[REDACTED]/account/ios/profile/regenProvisioningProfile.action

⠏ Updating provisioning profile (REDACTED) with distribution certificate (REDACTED)
Error: Request failed with status code 502 (POST https://developer.apple.com/services-account/[REDACTED]/account/ios/profile/regenProvisioningProfile.action)
✖ Failed to update provisioning profile (REDACTED) with distribution certificate (REDACTED)
Failed to set up Provisioning Profile
Failed to prepare all credentials. 
The next time you build, we will automatically use the following configuration:

Project Credential Configuration:
  Experience: @redacted/redacted, bundle identifier: com.myapp.myapp
    Provisioning profile (ID: REDACTED)
    Apple Team ID: REDACTED,  Apple Team Name: My name (Individual)

  Distribution Certificate - Certificate ID: REDACTED
    Apple Team ID: REDACTED,  Apple Team Name: My name (Individual)
  Push Notifications Key - Key ID: REDACTED
    Apple Team ID: REDACTED,  Apple Team Name: My name (Individual)
Cannot extract key "provisioningProfile" from response data of type string: <HTML>
<HEAD>
<TITLE>Error</TITLE>
</HEAD>

<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Error</H1>
<HR>

<FONT FACE="Helvetica,Arial"><B>
Description: Could not process this request.
</B></FONT>
<HR>
</BODY>

Error: Cannot extract key "provisioningProfile" from response data of type string: <HTML>
<HEAD>
<TITLE>Error</TITLE>
</HEAD>

<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Error</H1>
<HR>

<FONT FACE="Helvetica,Arial"><B>
Description: Could not process this request.
</B></FONT>
<HR>
</BODY>

    at Object.parseAppStoreResponse (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/apple-utils/build/index.js:1:930662)
    at Object.repairProvisioningProfileAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/apple-utils/build/index.js:1:934093)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Profile.regenerateAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/apple-utils/build/index.js:1:905448)
    at addCertificateToProfileAsync (/usr/local/lib/node_modules/expo-cli/src/appleApi/provisioningProfile.ts:89:10)
    at useExistingProvisioningProfileAsync (/usr/local/lib/node_modules/expo-cli/src/appleApi/provisioningProfile.ts:115:21)
    at Object.configureAndUpdateProvisioningProfile (/usr/local/lib/node_modules/expo-cli/src/credentials/views/IosProvisioningProfile.ts:363:26)
    at SetupIosProvisioningProfile.open (/usr/local/lib/node_modules/expo-cli/src/credentials/views/SetupIosProvisioningProfile.ts:76:5)
    at CredentialsManager.run (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:42:12)
    at runCredentialsManager (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:13:10)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.