JJTech0130 / grandslam

MIT License
27 stars 4 forks source link

Error code -29004: This action could not be completed due to possible environment mismatch. #3

Open vivester opened 2 months ago

vivester commented 2 months ago

I keep encountering the following error with my Apple ID: Error code -29004: "This action could not be completed due to a possible environment mismatch."

The error occurs after the second request to /GsService2 when submitting the M1 payload. The response I receive looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Response</key>
    <dict>
        <key>Status</key>
        <dict>
            <key>hsc</key>
            <integer>433</integer>
            <key>ed</key>
            <string></string>
            <key>ec</key>
            <integer>-29004</integer>
            <key>em</key>
            <string>This action could not be completed due to possible environment mismatch.</string>
            <key>tt</key>
            <string></string>
            <key>rsh</key>
            <false/>
        </dict>
    </dict>
    <key>Header</key>
    <dict>
    </dict>
</dict>
</plist>

It seems like this error is related to the Apple ID's region and whether 2FA is enabled. For example, US-based accounts work fine, and non-US accounts without 2FA also don't face issues. However, if the account is non-US and 2FA is enabled, this error is triggered.

Any ideas on how to resolve this?