[GraphQL] Unexpected server error when running eas build

When running eas build I get an error that seems to indicate the build servers have some issue. Does anyone else experience this as well?

Here’s the output:

% eas build             
✔ Build for platforms › All
✔ Linked to project █████████
✔ Using remote Android credentials (Expo server)
Using Keystore ported from Expo Classic (expo-cli)
✔ Uploaded to EAS 5s
✔ 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 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: … ████████████████
› Restoring session /Users/███/.app-store/auth/███████/cookie
✔ Select a Team › ██████ - Company/Organization (█████████)
› Provider ███████ (██████)
✔ Logged in Local session
✔ Bundle identifier registered com.█████.███████
✔ Synced capabilities: No updates
✔ Fetched Apple distribution certificates
✔ Fetched Apple provisioning profiles

Project Credentials Configuration:
  Project: @█████/██████████
  Bundle Identifier: com.██████.███████
  Configuration: App Store

  Distribution Certificate:
    Serial Number: ██████████████████████████
    Expiration Date: Tue, 07 Jun 2022 15:23:52 GMT+0200
    Apple Team: ████████████ (██████ (Company/Organization))
    Updated 12 days ago

  Provisioning Profile:
    Developer Portal ID: █████████
    Status: active
    Expiration Date: Tue, 07 Jun 2022 15:23:52 GMT+0200
    Apple Team: ███████ (████████ (Company/Organization))
    Updated 8 hours ago

All credentials are ready to build @████████/████████ (com.███████.██████)

✔ Uploaded to EAS 5s
Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, please report the issue.
Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, please report the issue.
    CombinedError: [GraphQL] Unexpected server error.

I’ve run npm install -g eas-cli but I still got the same error.

This is what my eas.json file looks like:

{
  "builds": {
    "android": {
      "release": {
        "workflow": "managed"
      }
    },
    "ios": {
      "release": {
        "workflow": "managed"
      },
      "preview": {
        "workflow": "managed",
        "distribution": "simulator"
      }
    }
  }
}

And my app.json:

{
  "expo": {
    "name": "████████",
    "description": "████████████████",
    "slug": "██████████",
    "owner": "███████████",
    "privacy": "unlisted",
    "sdkVersion": 41,
    "version": "0.17.2",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "scheme": "██████████",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#29235c"
    },
    "updates": {
      "fallbackToCacheTimeout": 2000
    },
    "assetBundlePatterns": ["assets/**/*"],
    "ios": {
      "bundleIdentifier": "com.████████.████████",
      "buildNumber": "6"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.██████.████████",
      "versionCode": 6,
      "permissions": ["CAMERA"]
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

Any idea what went wrong?

Okay, I managed to fix it myself. If I ran expo build:ios it showed the error:

Invalid Version: 41

In my app.json, I wrote:

    "sdkVersion": 41,

Where it should have been:

    "sdkVersion": "41.0.0",

Changing this made eas build start building.

you can actually delete the sdk version field entirely also, it will be derived automatically from the expo package version

1 Like