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

Can't submit to Apple App Store, Apple 403 detected - Access forbidden.

Open lennartkloock opened this issue 2 years ago • 10 comments

Build/Submit details page URL

No response

Summary

When executing eas submit -p ios and selecting an eas build and providing the right path to the Apple Connect API key, I get:

Error: Apple 403 detected - Access forbidden.
This request is forbidden for security reasons - The API key in use does not allow this request
✖ Failed to fetch App Store Connect API Key.
Apple 403 detected - Access forbidden.
This request is forbidden for security reasons - The API key in use does not allow this request
    Error: submit command failed.

Managed or bare?

Bare

Environment

expo-env-info 1.0.5 environment info: System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 18.17.1 - /usr/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.6.7 - /usr/bin/npm npmPackages: expo: ~45.0.8 => 45.0.8 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 npmGlobalPackages: eas-cli: 5.9.1 Expo Workflow: bare

Error output

at t.getAppleResponseError (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:833596) at block (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:840893) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:839166) at async method (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:840374) at async t.providerRequestAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:734446) at async s.requestAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:740890) at async s.requestAndParseAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:741594) at async s.fetchSingleModelAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:741360) at async getAscApiKeyAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/ascApiKey.js:38:24) ...

Reproducible demo or steps to reproduce from a blank project

Can't share a demo

lennartkloock avatar Nov 27 '23 22:11 lennartkloock

Hi, is that how you generated the API key https://github.com/expo/fyi/blob/main/creating-asc-api-key.md?

szdziedzic avatar Nov 30 '23 17:11 szdziedzic

Hi, is that how you generated the API key https://github.com/expo/fyi/blob/main/creating-asc-api-key.md?

Yes, that's exactly how I did it. When eas submit asks for the path, I provide the path to the .p8 file

lennartkloock avatar Nov 30 '23 17:11 lennartkloock

Could you provide a link to the source code of the apple-utils package so I can investigate myself? I can't find it anywhere. 🤔

lennartkloock avatar Dec 02 '23 16:12 lennartkloock

I tried submitting with an app-specific password using the EXPO_APPLE_APP_SPECIFIC_PASSWORD env var and it worked

lennartkloock avatar Dec 02 '23 16:12 lennartkloock