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

metadata:push fails with 'gamblingAndContests' is not an attribute

Open ffdead opened this issue 4 months ago • 2 comments

Build/Submit details page URL

No response

Summary

When running eas metadata:push with an advisory config it fails with the following error:

`Store configuration upload encountered an error.

The provided entity includes an unknown attribute - 'gamblingAndContests' is not an attribute on the resource 'ageRatingDeclarations' ` The config was both copied from the EAS documentation and pulled from the appstore. Both fails.

Managed or bare?

managed

Environment

 expo-env-info 1.3.4 environment info:
    System:
      OS: macOS 13.5
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
      Yarn: 1.22.22 - ~/.yarn/bin/yarn
      npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    IDEs:
      Xcode: 15.2/15C500b - /usr/bin/xcodebuild
    npmPackages:
      babel-preset-expo: ^13.0.0 => 13.0.0
      expo: ~53.0.20 => 53.0.20
      expo-router: ~5.1.4 => 5.1.4
      react: 19.0.0 => 19.0.0
      react-dom: 19.0.0 => 19.0.0
      react-native: 0.79.5 => 0.79.5
      react-native-web: ^0.20.0 => 0.20.0
    npmGlobalPackages:
      eas-cli: 16.17.4
    Expo Workflow: managed
16/17 checks passed. 1 checks failed. Possible issues detected:
Use the --verbose flag to see more details about passed checks.

✖ Check that packages match versions required by installed Expo SDK
The following packages should be updated for best compatibility with the installed expo version:
  [email protected] - expected version: ~2.24.0
Your project may not work correctly until you install the expected versions of the packages.
Found outdated dependencies
Advice:
Use 'npx expo install --check' to review and upgrade your dependencies.

1 check failed, indicating possible issues with the project.

Error output

EAS Metadata is in beta and subject to breaking changes.

› Log in to your Apple Developer account to continue ✔ Apple ID: … [...] › Restoring session /Users/[...]/.app-store/auth/[...]/cookie › [...] ([...]) › Provider [...] ([...]) ✔ Logged in Local session

Uploading App Store configuration...

  • Skipped version and release update, not configured
  • Updating localized version for en-US... ✔ Updated localized version for en-US
  • Skipped app category update, not configured
  • Reloading localized info... ✔ Reloaded localized info
  • Updating localized info for en-US... ✔ Updated localized info for en-US
  • Updating age rating declaration... ✖ Failed to update age rating declaration
  • Skipped store review details, not configured

Store configuration upload encountered an error.

The provided entity includes an unknown attribute - 'gamblingAndContests' is not an attribute on the resource 'ageRatingDeclarations'

Check the logs for any configuration issues. If this issue persists, open a new issue at: https://github.com/expo/eas-cli

Reproducible demo or steps to reproduce from a blank project

// store.config.json
{
  "configVersion": 0,
  "apple": {
    "version": "1.0",
    "release": {
      "automaticRelease": true
    },
    "info": {
      "en-US": {
        "description": "The most awesome app you have ever seen",
        "keywords": [
          "awesome",
          "app"
        ],
        "marketingUrl": "https://example.com/en/promo",
        "supportUrl": "https://example.com/en/support",
        "title": "Test app",
        "subtitle": "Your self-made awesome app",
        "privacyPolicyUrl": "https://example.com/en/privacy"
      }
    },
    "advisory": {
      "ageRatingOverride": "NONE",
      "alcoholTobaccoOrDrugUseOrReferences": "NONE",
      "contests": "NONE",
      "gambling": false,
      "gamblingSimulated": "NONE",
      "horrorOrFearThemes": "NONE",
      "kidsAgeBand": null,
      "koreaAgeRatingOverride": "NONE",
      "lootBox": false,
      "matureOrSuggestiveThemes": "NONE",
      "medicalOrTreatmentInformation": "INFREQUENT_OR_MILD",
      "profanityOrCrudeHumor": "NONE",
      "sexualContentGraphicAndNudity": "NONE",
      "sexualContentOrNudity": "NONE",
      "unrestrictedWebAccess": false,
      "violenceCartoonOrFantasy": "NONE",
      "violenceRealistic": "NONE",
      "violenceRealisticProlongedGraphicOrSadistic": "NONE"
    }
  }
}

ffdead avatar Aug 21 '25 08:08 ffdead

It seems the issue comes from @expo/apple-utils.

zhenyu-hong avatar Oct 31 '25 02:10 zhenyu-hong

same for me. is there any workaround to still push the metadata to the app store?

wotaso avatar Nov 05 '25 20:11 wotaso