eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

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

Open Aris-ngoy opened this issue 1 year ago • 12 comments

Build/Submit details page URL

No response

Summary

eas-cli/7.6.2 darwin-x64 node-v18.19.1

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)

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: 2)

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: 1)

✖ Failed to sync capability identifiers app.abela Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later Error: build command failed.

Managed or bare?

Managed

Environment

expo-env-info 1.2.0 environment info: System: OS: macOS 14.4 Shell: 5.9 - /bin/zsh Binaries: Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v18.19.1/bin/npm Watchman: 2024.01.22.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.15.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4 IDEs: Xcode: 15.3/15E204a - /usr/bin/xcodebuild npmPackages: expo: ~50.0.13 => 50.0.13 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.73.5 => 0.73.5 react-native-web: ~0.19.6 => 0.19.10 npmGlobalPackages: eas-cli: 7.6.2 Expo Workflow: bare

Error output

✔ Synced capabilities: No updates

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)

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: 2)

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: 1)

✖ Failed to sync capability identifiers app.abela 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

eas build -p ios production

Aris-ngoy avatar Mar 28 '24 10:03 Aris-ngoy

Same issue.

heyjamesknight avatar Mar 28 '24 23:03 heyjamesknight

Same issue.

deho0701 avatar Apr 01 '24 06:04 deho0701

I was having the same issue but updating eas-cli and then building again worked for me:

npm install -g eas-cli

lumamontes avatar Apr 02 '24 13:04 lumamontes

I also encountered a similar error even when using the latest version of eas-cli globally. I removed it globally and installed it directly into the project, and the build went smoothly.

thangnv1205 avatar Apr 04 '24 02:04 thangnv1205

Same error here, I tried what @lumamontes said but I still get the error. One thing to notice is that when I'm bumping up the node version from 16 to 18.20.2, I get the connection error, but if I downgrade to version 16 again, everything works like a charm. I don't see how those 2 things are connected but that's what i've noticed. Other than that I HAVE TO switch to node version 18 because the latest plugin "expo-privacy-manifest-polyfill-plugin" to fix stuff on iOS env privacy need a function that seems to be only present on node 18. I'm a bit scared about this because I've to deploy an update for Monday lol

impe93 avatar May 09 '24 17:05 impe93

Event though I already had eas-cli installed globally and things were working fine for a while, running npm install -g eas-cli fixed this for me when the error started popping up.

bportman avatar May 17 '24 12:05 bportman

use npx (npx eas build --profile) instead of eas(eas build --profile) it worked

Nikita-Shuminskiy avatar May 17 '24 23:05 Nikita-Shuminskiy

I was having the same issue but updating eas-cli and then building again worked for me:

npm install -g eas-cli

Worked for me, thanks!

Heverson avatar Jun 01 '24 22:06 Heverson

Receiving this after updating eas-cli to v10.0.0 today. Reverted to v9.2.0 and all worked fine.

rcarter avatar Jun 13 '24 17:06 rcarter

Getting this same issue, none of the above solutions fixed it for me :(. I'm getting it only when attempting an eas build with a particular profile; all the other ones work fine. There's nothing different, AFAICT, about this one.

steviec avatar Jun 19 '24 04:06 steviec

idk how but I did these steps and it worked for me,

  • downgrade to the last but one version of eas-cli sudo npm install -g [email protected]
  • sudo npm i
  • upgraded to the latest again sudo npm i -g eas-cli
  • then used sudo for eas build sudo eas build -p ios -e development the last step probably did the trick.

nitishanand99 avatar Jun 27 '24 16:06 nitishanand99

npm install -g eas-cli

Funcionou para mim, obrigado!

NandoGoulartt avatar Jul 01 '24 20:07 NandoGoulartt

I experienced the same issue after I upgraded to [email protected] today. I had to downgrade to version 10.0.0 before the build was successful.

The exact error I got was

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)


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: 2)


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: 1)

✖ Failed to sync capability identifiers ng.fob.mobile
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    Error: build command failed.

My environment info is below

expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.2.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
      Yarn: 1.22.22 - ~/.yarn/bin/yarn
      npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
    Managers:
      CocoaPods: 1.11.3 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
    IDEs:
      Android Studio: 2021.1 AI-211.7628.21.2111.8193401
      Xcode: 15.4/15F31d - /usr/bin/xcodebuild
    npmPackages:
      @expo/webpack-config: ^19.0.0 => 19.0.1 
      expo: ^50.0.19 => 50.0.19 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: 0.73.6 => 0.73.6 
      react-native-web: ~0.19.6 => 0.19.12 
    npmGlobalPackages:
      eas-cli: 10.1.1
    Expo Workflow: managed

opmat avatar Jul 11 '24 21:07 opmat

One second it was building locally fine and next started this happening...

Tried 10.0.0 same issue

MariuzM avatar Jul 15 '24 10:07 MariuzM

Hi, all!

It seems possible that Apple is doing some maintenance on their Developer Portal again 🤔

At what point of running the eas build command did it fail for you?

I believe that it is possible to know the exact request that failed if you use the EXPO_APP_STORE_DEBUG=1 EXPO_DEBUG=1 flags when running the eas build command. It would be helpful information for me because I'm having a hard time replicating the issue at the moment on my machine.

A few months ago in version 7.6.0 we added a logic to switch between the developer.apple.com and developer-mdn.apple.com domains when one of them is under the maintenance, but this error seems to not be caught by this logic. I will try to make it better by switching the domain on every internal server error we see because I believe it seems to work.

szdziedzic avatar Jul 15 '24 21:07 szdziedzic

I just released the new 10.2.0 EAS CLI version that will try to resolve the issue by switching between the developer.apple.com and developer-mdn.apple.com domains on every internal server error.

Please, let me know if it helps in your case.

szdziedzic avatar Jul 15 '24 22:07 szdziedzic

PATCH https://developer.apple.com/services-account/v1/bundleIds/ Error: Request failed with status code 501 (PATCH https://developer.apple.com/services-account/v1/bundleIds/)

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)

PATCH https://developer-mdn.apple.com/services-account/v1/bundleIds/ Error: Request failed with status code 503 (PATCH https://developer-mdn.apple.com/services-account/v1/bundleIds/) -- App Store Connect Error JSON -- { "errors": [ { "id": "610b951e-a7cb-925ebda53f72", "status": "503", "code": "SERVICE_NOTACTIVE", "title": "This request can not be processed right now", "resultCode": 10405, "detail": "Service not available because of maintenance activities, please try again after some time." } ] } -- End ASC Error JSON --

gchen1196 avatar Jul 18 '24 16:07 gchen1196

I had an agreement outstanding in App Store Connect. Once I had signed it, this error went away.

tmw102 avatar Jul 23 '24 14:07 tmw102

I had removed my app from review so it was marked as "developer rejected". Once I removed the old build from the release, it started working

rgomezp avatar Aug 27 '24 19:08 rgomezp

I was already using npx so no global install issue. I logged into the app store connect website to make sure my account/app was in good standing. It was. So I tried npx eas build again, and it just worked. So try that and try again before spending too much time searching.

Seanmclem avatar Sep 12 '24 21:09 Seanmclem

any updates here? I'm using eas-cli/12.4.1 and node-v20.13.1, meet the same issue

LKL2017 avatar Sep 19 '24 13:09 LKL2017

Same problem, eas-cli@latest and node v22.5.1. I've tried to update the eas-cli a bunch of times and also used npx to run the command.

saurabhbhatia avatar Oct 18 '24 23:10 saurabhbhatia

Same issue here as @saurabhbhatia

noahkurz avatar Oct 18 '24 23:10 noahkurz

Seeing 500s as well, and the global install did not help, nor did a downgrade, even to v12.5.0. My app store connect looks to be in good standing as well. Anyone have any luck here?

Example command:

EXPO_APP_STORE_DEBUG=1 EXPO_DEBUG=1 EAS_PWD=$PWD EAS_LOCAL_BUILD_SKIP_CLEANUP=1 npx eas build --profile production --platform ios --local

And this is the stack trace

⠇ Logging in...Error: Request failed with status code 503 (POST https://idmsa.apple.com/appleauth/auth/signin)
✖ 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
d [Error]: Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    at t.getAppleResponseError (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:828021)
    at block (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:834431)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async O (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:834956)
    at async T (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:833825)
    at async t.requestAsync (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:836214)
    at async /path/to/project/node_modules/@expo/apple-utils/build/index.js:1:704687
    at async w (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:703817)
    at async Object.S [as loginWithUserCredentialsAsync] (/path/to/project/node_modules/@expo/apple-utils/build/index.js:1:703396)
    at async loginWithUserCredentialsAsync (/path/to/project/node_modules/eas-cli/build/credentials/ios/appstore/authenticate.js:84:24) {
  response: {
    status: 503,
    statusText: 'Service Temporarily Unavailable',
    headers: {
      server: 'Apple',
      date: 'Sat, 19 Oct 2024 00:57:55 GMT',
      'content-type': 'text/html',
      'content-length': '190',
      connection: 'keep-alive'
    },
    config: {
      url: 'https://idmsa.apple.com/appleauth/auth/signin',
      method: 'post',
      data: '{"accountName":"REDACTED","password":"REDACTED","rememberMe":true}',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      withCredentials: true,
      adapter: [Function (anonymous)],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      jar: [M],
      maxRedirects: 0,
      baseURL: 'https://idmsa.apple.com/appleauth',
      validateStatus: [Function: validateStatus]
    },
    request: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: 116,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'POST /appleauth/auth/signin HTTP/1.1\r\n' +
        'Accept: application/json, text/javascript\r\n' +
        'Content-Type: application/json\r\n' +
        'User-Agent: Xcode\r\n' +
        'X-Xcode-Version: 7.0 (7A120f)\r\n' +
        'X-Requested-With: XMLHttpRequest\r\n' +
        'X-Apple-Widget-Key: REDACTED\r\n' +
        'X-APPLE-HC: 1:12:20241019005755:REDACTED::16739\r\n' +
        'Cookie: myacinfo=REDACTED' +
        'Content-Length: 116\r\n' +
        'Host: idmsa.apple.com\r\n' +
        'Connection: keep-alive\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: '/appleauth/auth/signin',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: true,
      host: 'idmsa.apple.com',
      protocol: 'https:',
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kHighWaterMark)]: 16384,
      [Symbol(kRejectNonStandardBodyWrites)]: false,
      [Symbol(kUniqueHeaders)]: null
    },
    data: '<html>\r\n' +
      '<head><title>503 Service Temporarily Unavailable</title></head>\r\n' +
      '<body>\r\n' +
      '<center><h1>503 Service Temporarily Unavailable</h1></center>\r\n' +
      '<hr><center>Apple</center>\r\n' +
      '</body>\r\n' +
      '</html>\r\n'
  }
}

mcr5fh avatar Oct 19 '24 01:10 mcr5fh

Same here. No mention about an Apple outage here though: https://developer.apple.com/system-status/

superunrelated avatar Oct 19 '24 01:10 superunrelated

Same issue

SirFroweey avatar Oct 19 '24 01:10 SirFroweey

Same, tried downgrading eas-cli to 12.5.1, tried upgrading to Node 22, running out of ideas

K-E-L avatar Oct 19 '24 01:10 K-E-L

FYI, I just added --non-interactive and was able to successfully build and upload to ASC

Full command that worked: EXPO_APP_STORE_DEBUG=1 EXPO_DEBUG=1 EAS_PWD=$PWD EAS_LOCAL_BUILD_SKIP_CLEANUP=1 npx eas build --profile production --non-interactive --platform ios --local

Saw the idea here: https://github.com/expo/eas-cli/issues/2497#issuecomment-2293756027

mcr5fh avatar Oct 19 '24 01:10 mcr5fh

For non-Mac users facing this issue, this worked: eas build --profile production --non-interactive --platform ios

@mcr5fh Thanks for the help!!

JosDaw avatar Oct 19 '24 01:10 JosDaw

I just had this same issue and used eas build --profile production --non-interactive --platform ios. Thank you @mcr5fh you are a life saver!

lperotti399 avatar Oct 19 '24 01:10 lperotti399