Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Unable to log in to iTunes Connect - returns HTML #477

Closed
ashleymills opened this issue Nov 12, 2015 · 19 comments
Closed

Unable to log in to iTunes Connect - returns HTML #477

ashleymills opened this issue Nov 12, 2015 · 19 comments
Labels

Comments

@ashleymills
Copy link

Running deliver init gives the following errors:

/Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.14.0/lib/spaceship/tunes/tunes_client.rb:98:in `send_login_request':  (Spaceship::TunesClient::ITunesConnectError)












<!DOCTYPE html>



        <html data-rtl="">


<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="//www.apple.com/wss/fonts?family=Myriad+Set+Pro&weights=200,400,500,600,700&v=1"
          type="text/css"/>







                    <link rel="stylesheet" type="text/css" media="screen" href="https://appleid.cdn-apple.com/appleauth/static/cssj/N588571505/client.css" />





</head>
<body>
<div class="si-body si-container container-fluid" id="content">
</div>



<script type="text/stache" id="jstache_1100766540">
<div class="apple-id-logo {{showClass}}" id="apple-id-logo">
    <i class="icon icon_apple"></i>
</div>

</script>
<script type="text/stache" id="jstache_478152846">
<div class="spinner-container redirect-spinner {{#spinnerFor.redirect}}v-show{{/spinnerFor.redirect}}{{^spinnerFor.redirect}}v-hide{{/spinnerFor.redirect}}"
     id="redirect-spinner-container"></div>
<a href="#" class="si-link" id="redirectPrefetch">{{text}}</a>
<a href="{{redirectUrl}}" target="_blank" id="redirect"></a>
</script>
<script type="text/stache" id="jstache_538704210">
{{#logoImage}}
    <div class="logo">
        {{#logoUrl}}
            <a href="{{logoUrl}}" target="blank" tabindex="0" class="ax-outline">
                <img class="cnsmr-app-image" src="{{logoImage}}" style="width:{{logoWidth}}" alt="Application logo"/>
            </a>
        {{/logoUrl}}
        {{^logoUrl}}
            <img class="cnsmr-app-image" src="{{logoImage}}" style="width:{{logoWidth}}" alt="Application logo"/>
        {{/logoUrl}}
    </div>
{{/logoImage}}
</script>
<script type="text/stache" id="jstache_1214933640">
{{^isRepairRequired}}
    <appleid-logo mode="{mode}"></appleid-logo>
{{/isRepairRequired}}
<div class="widget-container fade-in {{#showAcccountLockedDialog}}show-dialog{{/showAcccountLockedDialog}} {{^isRepairRequired}}restrict-max-wh{{/isRepairRequired}} {{#showRepairWidget}}fade-out{{/showRepairWidget}} {{^showRepairWidget}}fade-in{{/showRepairWidget}}"
     data-mode="{{mode}}">
    {{#showExpiredPwdRepair}}
        {{^isRepairUIModeInline}}
            <div id="pop-change-pwd" class="change-password-pop"></div>
        {{/isRepairUIModeInline}}
        {{#isRepairUIModeInline}}
            <div id="inline-change-pwd" class="change-password-inline"></div>
        {{/isRepairUIModeInline}}
    {{/showExpiredPwdRepair}}

    <div id="step" class="si-step {{#fadeIn}}fade-in{{/fadeIn}}">
        {{^showExpiredPwdRepair}}
            <logo></logo>
        {{/showExpiredPwdRepair}}
        <div id="stepEl"
             class="{{#showExpiredPwdRepair}}hide{{/showExpiredPwdRepair}} {{#or showAcccountLockedDialog showNoDevicesNoRKDialog}}hide{{/or}} {{#dialog.resetCRToken.message}}hide{{/dialog.resetCRToken.message}}"></div>
    </div>
    <div id="stocking" style="display:none !important;"></div>
    {{#showAcccountLockedDialog}}
        <app-dialog heading="{dialog.acccountLocked.title}"
                    show-apple-logo="{dialog.acccountLocked.showAppleLogo}"
                    theme="{dialog.acccountLocked.theme}"
                    title-align="{dialog.acccountLocked.titleAlign}"
                    body-align="{dialog.acccountLocked.bodyAlign}"
                    btn-opts="{dialog.acccountLocked.btnOpts}">
            <div class="acc-locked" id="acc-locked">
                <div class="dialog-body">
                    <div class="dialog-info">
                        <div class="thick">
                            This Apple&nbsp;ID has been locked for security reasons.
                        </div>
                        <div class="thin">
                            You must unlock your account before signing in.
                        </div>
                        <a class="si-link" id="resetAcc" href="{{iForgotUrl}}" target="_blank">
                            Unlock Account
                        </a>
                    </div>
                </div>
            </div>
        </app-dialog>
    {{/showAcccountLockedDialog}}
    {{#showNoDevicesNoRKDialog}}
        <app-dialog heading="{dialog.noDevicesNoRKDialog.title}"
                    show-apple-logo="{dialog.noDevicesNoRKDialog.showAppleLogo}"
                    theme="{dialog.noDevicesNoRKDialog.theme}"
                    title-align="{dialog.noDevicesNoRKDialog.titleAlign}"
                    body-align="{dialog.noDevicesNoRKDialog.bodyAlign}"
                    btn-opts="{dialog.noDevicesNoRKDialog.btnOpts}">
            <div class="acc-locked" id="acc-locked">
                <div class="dialog-body">
                    <div class="dialog-info">
                        <div class="thick">
                            Cannot Verify Identity
                        </div>
                        <div class="thin">
                            Your sign in cannot be completed because you have no trusted devices listed for your account. Visit the Apple&nbsp;ID site and use your Recovery Key to add trusted devices.
                        </div>
                        <a class="si-link" id="addTrustedDevice" href="{{appleIdUrl}}" target="_blank">
                            Add a Trusted Device
                        </a>
                    </div>
                </div>
            </div>
        </app-dialog>
    {{/showNoDevicesNoRKDialog}}
    {{#dialog.resetCRToken.message}}
        <app-dialog heading="{dialog.acccountLocked.title}"
                    show-apple-logo="{dialog.acccountLocked.showAppleLogo}"
                    theme="{dialog.acccountLocked.theme}"
                    title-align="{dialog.acccountLocked.titleAlign}"
                    body-align="{dialog.acccountLocked.bodyAlign}"
                    btn-opts="{dialog.acccountLocked.btnOpts}">
            <div class="reset-cr-token" id="resetCRToken">
                <div class="dialog-body">
                    <div class="dialog-info">
                        <div class="thin">
                            {{dialog.resetCRToken.message}}
                        </div>
                    </div>
                </div>
            </div>
        </app-dialog>
    {{/dialog.resetCRToken.message}}
    {{#isRepairRequired}}
        <div class="repair-widget {{#showRepairWidget}}fade-in{{/showRepairWidget}} {{^showRepairWidget}}fade-out{{/showRepairWidget}}"
             id="repairWidget"></div>
    {{/isRepairRequired}}
</div>

</script>
<script type="text/stache" id="jstache_1773805210">

<div class="dialog fade-in" ui-theme="{{theme}}" role="alert" aria-describedby="alertInfo" tabindex="-1">
    <p id="alertInfo" class="sr-only">
        {{^heading}}

        {{/heading}}
        {{#heading}}
            {{heading}}
        {{/heading}}
    </p>

    <div class="app-dialog">
        <div class="head {{^heading}}no-title{{/heading}}">
            {{#showAppleLogo}}
                <appleid-logo></appleid-logo>
            {{/showAppleLogo}}
            {{#heading}}
                <div class="title" title-align="{{titleAlign}}">
                    <h2>{{heading}}</h2>
                </div>
            {{/heading}}
        </div>
        <div class="body" body-align="{{bodyAlign}}">
            <content/>
        </div>
        <div class="footer">
            {{#buttons}}
                <div class="button-bar" btn-direction="{{buttons.direction}}">
                    {{#each btns}}
                        <button class="button click-handle ax-outline" tabindex="0" id="{{id}}">{{text}}</button>
                    {{/each}}
                </div>
            {{/buttons}}
        </div>
        {{#str_eq theme "translucent"}}
            <i class="icon icon_remove74_gray click-handle ax-outline" id="close" tabindex="0" role="button"
               aria-label="Close"></i>
        {{/str_eq}}
    </div>
</div>
</script>
<script type="text/stache" id="jstache_1197030642">
<div class="signin fade-in" id="signin">
    {{#appName}}
        <h1 class="si-container-title" tabindex="-1">
            Sign In to {{appName}}
        </h1>
    {{/appName}}
    {{^appName}}
        <h1 class="si-container-title" tabindex="-1">
            {{{signInLabel}}}
        </h1>
    {{/appName}}
    <div class="container si-field-container {{#invalidShake}}shake{{/invalidShake}}">
        <div class="row no-gutter si-field apple-id {{#isAppleIdFocus}}ax-border{{/isAppleIdFocus}}">
            <div class="col-xs-12">
                <label for="appleId" class="sr-only">
                    Apple ID
                </label>
                <input class="si-text-field"
                       id="appleId"
                       type="email"
                       placeholder="{{appleIdPlaceholder}}"
                       can-field="accountName"
                       autocomplete="off"
                       autocorrect="off"
                       autocapitalize="off"
                       spellcheck="false">
            </div>
        </div>
        <div class="row no-gutter si-field pwd {{#isPwdFocus}}ax-border{{/isPwdFocus}}">
            <div class="col-xs-12">
                <label for="pwd" class="sr-only">
                    Password
                </label>
                <input class="si-password si-text-field {{#spinnerFor.auth}}disable{{/spinnerFor.auth}} {{^isPwdFieldEmpty}}dots{{/isPwdFieldEmpty}}"
                       id="pwd"
                       type="password"
                       placeholder="{{passwordPlaceholder}}"
                       can-field="password"
                    {{#errorMessage}}aria-invalid="true" aria-describedby="invalidUserNamePwdErrMsg"{{/errorMessage}}
                       autocomplete="off">
            </div>
        </div>
        {{#errorMessage}}
            <div class="pop-container error signin-error" tabindex="-1" role="alert">
                <div class="error pop-bottom">
                    <p class="fat" id="invalidUserNamePwdErrMsg">
                        {{{errorMessage}}}
                    </p>
                    {{#is401}}
                        <a href="{{iForgotUrl}}" target="blank" class="si-link ax-outline thin">
                            Forgot password?
                        </a>
                    {{/is401}}
                </div>
            </div>
        {{/errorMessage}}
        {{#showRememberMe}}
            <div class="si-remember-password">
                <input type="checkbox" id="remember-me" tabindex="0" class="ax-outline">
                <label for="remember-me">
                    {{rememberMeText}}
                </label>
            </div>
        {{/showRememberMe}}
        {{#spinnerFor.auth}}
            <div class="spinner-container auth">
            </div>
        {{/spinnerFor.auth}}
        {{^spinnerFor.auth}}
            <button id="sign-in"
                    class="si-button btn {{^allow.auth}}disabled{{/allow.auth}}"
                    aria-label="Sign In"
                    aria-disabled="{{^allow.auth}}true{{/allow.auth}}{{#allow.auth}}false{{/allow.auth}}"
                    tabindex="0">
                <i class="icon icon_sign_in"></i>
            </button>
        {{/spinnerFor.auth}}
    </div>
    <div class="si-container-footer">
        {{#or showCreateLink showiForgotLink}}
            <div class="separator {{^showRememberMe}}no-remember-me{{/showRememberMe}}"></div>
            <div class="links">
                {{#showiForgotLink}}
                    <div class="si-forgot-password">
                        <a href="{{iForgotUrl}}" class="si-link ax-outline" target="blank">
                            Forgot Apple&nbsp;ID or password?
                        </a>
                    </div>
                {{/showiForgotLink}}
                {{#showCreateLink}}
                    <div>
                        <span class="fat">Don’t have an Apple&nbsp;ID?</span>
                        <a href="{{createAppleIDUrl}}" class="si-forgot-password si-link ax-outline" target="blank">
                            Create yours now.
                        </a>
                    </div>
                {{/showCreateLink}}
            </div>
        {{/or}}
        {{#showFooter}}
            <div class="si-footer">
            <span class="copyright-text">Copyright &#169; {{currentYear}} Apple Inc. All rights reserved.</span>
                <a class="terms-of-use ax-outline" target="blank" href="http://www.apple.com/legal/terms/site.html">
                    Terms of Use
                </a>
                <a class="privacy ax-outline" target="blank" href="http://www.apple.com/legal/privacy/">
                    Privacy Policy
                </a>
            </div>
        {{/showFooter}}
    </div>
</div>

</script>





        <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsj/N1428189282/package.js" ></script>





<script type="text/javascript">
    System.register('bootData', [], function (exports) {
        var urlContext = '/appleauth/';
        if (urlContext.substr(-1) === '/') {
            urlContext = urlContext.substr(0, urlContext.length - 1);
        }
        return {
            setters: [],
            execute: function () {
                var bootData = {};
                bootData.urlContext = urlContext;
                bootData.accountName = '';
                bootData.resetCRToken = '';
                bootData.isRtl = '';
                bootData.destinationDomain = "null";
                if (bootData.destinationDomain && bootData.destinationDomain.substr(-1) === '/') {
                    bootData.destinationDomain = bootData.destinationDomain.substr(0, bootData.destinationDomain.length - 1);
                }
                bootData.urlBag = null;
                bootData.meta = {};
                bootData.meta.futureReservedAuthUIModes = ['popped-window', 'dialog', 'tabbed'];
                bootData.meta.supportedAuthUIModes = ['window', 'embed', 'inline'];

                exports('data', bootData);
            }
        };
    });
    System.import('idms/modules/managers/localizationManager')
            .then(function (module) {
                var localizationManager = module.default;
                localizationManager.addString('signInFallbackError', 'Your Apple&nbsp;ID or password was entered incorrectly.');
                localizationManager.addString('fallback', 'Failed to verify your identity. Try again.');
                localizationManager.addString('exampleEmail', 'name@example.com');
                localizationManager.addString('appleId', 'Apple&nbsp;ID');
                localizationManager.addString('password', 'Password');
                localizationManager.addString('rememberMe', 'Remember me ');
                localizationManager.addString('keepMeSignedIn', 'Keep me signed in');
                localizationManager.addString('defaultSignInLabel', 'Sign In with your AppleID');
                localizationManager.addString('cancelText', ' Cancel');
                localizationManager.addString('resetAccText', ' Unlock Account');
                localizationManager.addString('gotoAppleIdText', ' Go to Apple&nbsp;ID');
                localizationManager.addString('addTrustedDeviceText', ' Add a Trusted Device');
                localizationManager.addString('iframeTitle', ' Apple ID Sign-In');
                return System.import('main');
            })
            .catch(function (error) {
                console.log("ERROR!!", error)
            });
</script>

</body>
</html>

aa=93E4E5062D0AA63560E8A91CA34999BF5E632AC94628A2F8546CB230ED7C5E9FD2852ACF248BA413D3B4585A24982C6881DC59A5C6CCAE6D773903F37B368844F1CC577087D26CE96D6A4797C8D00BE757AE7EB77C87167DAAE8CCCC5F403F08F4263D5696FA2150EE5E0C7AFE18473707FAFBE764FE24040E5BAE5C120588FF15ACB35C1E2DC2513EBA11F3C6EC6B984804DBD2D1186275DFCADFD34C737EBA770B700BB2D81AC2F5F9377DAB14F6C99B25D63964FA46D5AFF275F051B58A0B3F51592447AB3ED46D8ACD818C95B9DF60E1B4BFEE237E00B58EFE39B1E664D00B529A2FE83DAC35640D3C336175FE9ABD621CA8B2B36F71D0CB308DC4AC8712; Domain=idmsa.apple.com; Path=/; Secure; HttpOnly, site=USA; Domain=.apple.com; Path=/; Secure; HttpOnly, acn01=sUXB7rgUE4wHY2k/JBrzwROmSACPLhzPR2Bd; Domain=.apple.com; Expires=Fri, 11-Nov-2016 15:39:10 GMT; Path=/; Secure; HttpOnly, X-SESS=475ca3dd9693018c0d48cbf1e4c073c2400849b813c31146b7e5ac83a807687a49b8cbde;Version=1;Max-Age=1800;path=/;secure;httponly
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.14.0/lib/spaceship/client.rb:160:in `login'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.14.0/lib/spaceship/client.rb:54:in `login'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.14.0/lib/spaceship/tunes/spaceship.rb:22:in `login'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/runner.rb:14:in `login'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/runner.rb:7:in `initialize'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/commands_generator.rb:43:in `new'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/commands_generator.rb:43:in `block (2 levels) in run'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/commands_generator.rb:111:in `run'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/lib/deliver/commands_generator.rb:12:in `start'
    from /Users/ashleymills/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.5.1/bin/deliver:5:in `<top (required)>'
    from /usr/local/bin/deliver:23:in `load'
    from /usr/local/bin/deliver:23:in `<main>'
@alexanderott
Copy link

I can confirm this issue. This happens regardless of whether two factor authentication is enabled or not.

@danieljimenez
Copy link

Confirmed.

@MartinSchultz
Copy link

I saw this issue only appearing after I updated from fastlane 1.5.0 to 1.5.1. But since 1.5.1 I see exactly the same as written above.

@superarts
Copy link

Same, I've updated to deliver 1.5.1 and deliver --version shows 1.5.1 correctly. However it still gives me:

#######################################################################
# deliver 1.5.1 is available. You are on 1.5.0.
# It is recommended to use the latest version.
# Update using 'sudo gem update deliver'.
#######################################################################

1.5.1 Updated spaceship
- Updated to the latest `spaceship` to support the new iTunes Connect login infrastructure
- Improved build selection

Update using 'sudo gem update deliver'

And the HTML output above.

@yogimarsal
Copy link

I got this HTML output after run "fastlane deploy". Then I tried to delete the account from "Keychain Access", then "deliver init". after input my password, I get error message "error occurred with setup program! Reverting changes now!". (my password have a number, lowercase and uppercase)

Then I tried with my another account, which the password just contain lowercase and number, it is work. but sadly, when I changed my current account password`s, uppercase character is mandatory from Apple.

@superarts
Copy link

BTW I've noticed that the login page of iTunesConnect has been changed, and that is mayhaps the reason that breaks the script in 1.5.0, and unfortunately there's some problem prevents deliever to be updated to 1.5.1 correctly.

@MartinSchultz
Copy link

sudo gem update spaceship helped in my setup.

@KrauseFx
Copy link
Collaborator

Please update spaceship using sudo gem update spaceship

@tkrajacic
Copy link

I have the same issue with all the latest versions installed (two-factor auth enabled) and using sigh --adhoc

I do get the confirmation dialog for two factor auth and the code, but there is of course nowhere to put it in.

@KrauseFx
Copy link
Collaborator

I just pushed a new version of spaceship that shows a proper error message when 2 step is enabled for the dev portal account.

@anku94
Copy link

anku94 commented Nov 26, 2015

Facing same issue with Deliver 1.5.1 on OSX Yosemite

Tried running sudo gem update spaceship - Nothing to update

Also manually installed latest releases of deliver and spaceship

@KrauseFx
Copy link
Collaborator

@anku94 do you have 2 step verification enabled by any chance? Can you run deliver -v to verify your deliver version?

@rompic
Copy link

rompic commented Nov 30, 2015

same here.
deliver init works with one account, but not with the other. both are admins, however the one where it doesn't work is in 2 teams. any other ideas what could be different between these two accounts?

@rompic
Copy link

rompic commented Dec 1, 2015

not using two factor auth. also tried another account which is not in two teams, but didn't work either. any hints. We have an internal fastlane presentation this week would love if this worked

@rompic
Copy link

rompic commented Dec 1, 2015

i think i found the issue. these users do not have itunes-connect accounts

@anku94
Copy link

anku94 commented Dec 1, 2015

@rompic @KrauseFx yes, that's correct. I was added only to my team's Member Center account, but not iTunes Connect account. The issue resolved when I was added there.

@rompic
Copy link

rompic commented Dec 1, 2015

i can confirm that this was the issue on our side as well.

@KrauseFx
Copy link
Collaborator

Thanks everyone.

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#2149. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests