xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

Error: "The requested page could not be found." #369

Closed solgar closed 4 years ago

solgar commented 4 years ago

Output from console:

$xcversion --version
2.6.3

$ xcversion update
-------------------------------------------------------------------------------------
Please provide your Apple Developer Program account credentials
The login information you enter will be stored in your macOS Keychain
You can also pass the password using the `FASTLANE_PASSWORD` environment variable
See more information about it on GitHub: https://github.com/fastlane/fastlane/tree/master/credentials_manager
-------------------------------------------------------------------------------------
Username: ---redacted---
Service key is empty
Two Factor Authentication for account '---redacted---' is enabled
Your session cookie has been expired.
Please enter the 6 digit code: ---redacted---
Requesting session...
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse': 784: unexpected token at '<!DOCTYPE html> (JSON::ParserError)
<html lang="en">
<head>
    <style>
        body {
            font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
            font-size: 15px;
            font-weight: 200;
            line-height: 20px;
            color: #4c4c4c;
            text-align: center;
        }

        .section {
            margin-top: 50px;
        }
    </style>
</head>
<body>
<div class="section">
    <h1>&#63743;</h1>

    <h3>Not Found</h3>
    <p>The requested page could not be found.</p>
</div>
</body>
</html>

'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/client.rb:487:in `fetch_olympus_session'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/client.rb:463:in `send_shared_login_request'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/portal/portal_client.rb:27:in `send_login_request'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/client.rb:660:in `do_login'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/client.rb:362:in `login'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/client.rb:70:in `login'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/portal/spaceship.rb:25:in `login'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/portal/spaceship.rb:98:in `login'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:339:in `spaceship'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:380:in `fetch_seedlist'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:203:in `seedlist'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:418:in `list_versions'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:309:in `list'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/lib/xcode/install/update.rb:10:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.6.3/bin/xcversion:12:in `<top (required)>'
    from /usr/local/bin/xcversion:22:in `load'
    from /usr/local/bin/xcversion:22:in `<main>'
milch commented 4 years ago

Hey, it looks like your fastlane version is2.102.0 which is a bit outdated. Apple recently changed around their authentication endpoints and it seems your version is still using the old one.

Try running bundle update (or gem update fastlane) to upgrade fastlane and the other dependencies and see if that fixes it 👍

solgar commented 4 years ago

@milch Thanks for your response. I had my environment really messed up. I'm not entirely sure why it was like this but after making some cleanup, properly managing ruby versions (rbenv) and reinstalling it went away.