xcrun altool --validate-app fails unexpectedly

Hi

When I try to validate an ipa with altool by running

xcrun altool --validate-app \
    --file app.ipa \
    --type ios \
    --apiKey $APP_STORE_CONNECT_KEY_IDENTIFIER \
    --apiIssuer $APP_STORE_CONNECT_ISSUER_ID \
    --show-progress \
    --verbose \
    --output-format json

it keeps failing with the following error:

Now, at first glance it looks like this could be some one-off issue which should be resolved by a simple retry, but actually the same thing happens over and over again. We have tried it on different macOS hosts, with different Xcode versions and different Apple Developer team credentials even.

Verbose altool log output is also very consistent. The failing request is always to https://contentdelivery.itunes.apple.com/WebObjects/MZLabelService.woa/json/MZITunesProducerService. Relevant log portion is as follows:

What could be the issue that is causing this?

Best regards

Hi,

I'm facing the same issue with same command.

Below the command:

xcrun altool 
    --validate-app \
    --f app.ipa \
    --t ios \
    --apiKey $APP_STORE_CONNECT_KEY_IDENTIFIER \
    --apiIssuer $APP_STORE_CONNECT_ISSUER_ID \
    --verbose \

and the error recieved:

*** Error: Server returned an invalid MIME type: text/html, body: Something went wrong here! Correlation Key: XXXXXXXXXXXXXXXXX

Same error happens not only from CLI, but also when archiving and validating the app directly using Xcode 13.0 from App Store and latest Xcode 13.2 (13C90) from Apple Developer.

Tried several times, using different WiFi networks and also tethering from my iPhone, but I got the same error.

I get the "Error: Server returned an invalid MIME type: text/html, body" intermittently. While I do appreciate that Apple is attempting to protect users from malware, the notarization process is a nightmare for developers. It seems the opposite of the it just works ethos that made Apple famous.

xcrun altool --validate-app fails unexpectedly
 
 
Q