Error "Failed to setup credentials." when running eas build

I ran
EXPO_APP_STORE_DEBUG=1 eas build --profile development --platform ios

and here is the output.

– Enabled debug logging –
:heavy_check_mark: Linked to project @haibert/Stacksharetest
:heavy_check_mark: 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.
:heavy_check_mark: Do you want to log in to your Apple account? … yes

› Log in to your Apple Developer account to continue
:heavy_check_mark: Apple ID: … dev@simplyrem.com
› Restoring session /Users/hb/.app-store/auth/dev@simplyrem.com/cookie
POST https://developer.apple.com/services-account/QH65B2/account/listTeams.action
200 OK (POST https://developer.apple.com/services-account/QH65B2/account/listTeams.action)
› Team Simplyrem Inc. (7CUKW6T237)
GET https://appstoreconnect.apple.com/olympus/v1/session
200 OK (GET https://appstoreconnect.apple.com/olympus/v1/session)
› Provider Simplyrem Inc. (122073873)
:heavy_check_mark: Logged in Local session
POST https://developer.apple.com/services-account/QH65B2/account/listTeams.action
200 OK (POST https://developer.apple.com/services-account/QH65B2/account/listTeams.action)
⠋ Linking bundle identifier com.simplyrem.StacksharetestPOST https://developer.apple.com/services-account/v1/bundleIds
⠙ Linking bundle identifier com.simplyrem.Stacksharetest200 OK (POST https://developer.apple.com/services-account/v1/bundleIds)
:heavy_check_mark: Bundle identifier registered com.simplyrem.Stacksharetest
⠋ Syncing capabilitiesPOST https://developer.apple.com/services-account/v1/bundleIds/3JKQ9LQX8V/bundleIdCapabilities
⠙ Syncing capabilities200 OK (POST https://developer.apple.com/services-account/v1/bundleIds/3JKQ9LQX8V/bundleIdCapabilities)
:heavy_check_mark: Synced capabilities: No updates
Failed to setup credentials.
CombinedError: [GraphQL] Unexpected server error.
[GraphQL] Unexpected server error.

I also tried

expo build:ios --skip-credentials-check or eas build -p ios --non-interactive

still got the same error