rfvgyhn / min-ed-launcher

Minimal Elite Dangerous Launcher
MIT License
251 stars 9 forks source link

Couldn't login: Couldn't parse json #117

Closed johrad closed 7 months ago

johrad commented 7 months ago

Describe the bug/error Will not launch

Debug log

2024-01-18 15:25:39.026 +01:00 [INF] Elite Dangerous: Minimal Launcher - v0.9.0+cebb41d8
2024-01-18 15:25:39.111 +01:00 [DBG] 
    Args: [|"C:\Program Files (x86)\Steam\steamapps\common\Elite Dangerous\EDLaunch.exe";
  "/Steam"; "/novr"; "/autorun"; "/autoquit"; "/edo"|]
    OS: Win64
    Env: 

2024-01-18 15:25:39.114 +01:00 [DBG] Reading settings from 'C:\Users\jpdra\AppData\Local\min-ed-launcher\settings.json'
2024-01-18 15:25:39.285 +01:00 [DBG] Settings: { Platform = Steam
  DisplayMode = Pancake
  AutoRun = true
  AutoQuit = true
  WatchForCrashes = false
  ProductWhitelist = seq ["edo"]
  ForceLocal = true
  CompatTool = None
  CbLauncherDir =
   "C:\Program Files (x86)\Steam\steamapps\common\Elite Dangerous"
  PreferredLanguage = None
  ApiUri = https://api.zaonce.net/
  Restart = None
  AutoUpdate = true
  CheckForLauncherUpdates = true
  MaxConcurrentDownloads = 4
  ForceUpdate = set []
  Processes = []
  ShutdownProcesses = []
  FilterOverrides =
   seq [[FORC-FDEV-DO-1000, edo]; [FORC-FDEV-DO-38-IN-40, edh4]]
  AdditionalProducts = []
  DryRun = false
  ShutdownTimeout = 00:00:10
  CacheDir = "C:\Users\jpdra\AppData\Local\min-ed-launcher\cache"
  GameStartDelay = 00:00:00
  ShutdownDelay = 00:00:00 }
2024-01-18 15:25:39.297 +01:00 [INF] Elite Runtime
    Platform: Steam
    CobraBay Version: 1.7.6926.10
    Products Dir: C:\Program Files (x86)\Steam\steamapps\common\Elite Dangerous\Products
2024-01-18 15:25:39.310 +01:00 [DBG] Getting machine id
2024-01-18 15:25:39.324 +01:00 [INF] Logging in
2024-01-18 15:25:39.325 +01:00 [DBG] Getting remote time
2024-01-18 15:25:39.805 +01:00 [DBG] Got steam client
2024-01-18 15:25:39.805 +01:00 [DBG] Got steam pipe
2024-01-18 15:25:39.806 +01:00 [DBG] Got steam global user
2024-01-18 15:25:39.807 +01:00 [DBG] Got steam user
2024-01-18 15:25:39.807 +01:00 [DBG] Requesting steam auth ticket
2024-01-18 15:25:39.808 +01:00 [DBG] Got steam auth ticket
2024-01-18 15:25:39.811 +01:00 [DBG] Authenticating via Steam
2024-01-18 15:25:40.910 +01:00 [DBG] Disposing Steam resources
2024-01-18 15:25:40.910 +01:00 [DBG] Cancelling auth ticket
2024-01-18 15:25:40.910 +01:00 [DBG] closing steam
2024-01-18 15:25:40.919 +01:00 [ERR] Couldn't login: Couldn't parse json - ExpectedStartOfValueNotFound, < LineNumber: 0 | BytePositionInLine: 0.
<!DOCTYPE html>
<html lang="en">
<head>
    <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="8abf42ed-5bc3-4f5c-88f9-a883b8df5ea1"
            data-blockingmode="auto" type="text/javascript"></script>
    <meta charset="UTF-8">
    <title>Frontier Authentication</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

    <script>
        // Screen size identification
        (function(m,d,a,b){if (m && d) {d.add('c1','c2')
            if(d.contains("c2")) {
                var i,q=[m(a+0+b),m(a+33.75+b),m(a+71.25+b),m(a+90+b)]
                function f(r){
                    var p='desktop'
                    d.remove('c1','c2','phone','tablet',p,'widescreen','lte-tablet','gte-tablet','lte-'+p,'gte-'+p)
                    if (q[3].matches) {p='widescreen';d.add(p,'gte-tablet','gte-desktop')}
                    else if (q[2].matches) d.add(p,'gte-tablet','gte-'+p,'lte-'+p)
                    else if (q[1].matches) {p='tablet';d.add(p,'lte-'+p,'gte-'+p,'lte-desktop')}
                    else if (q[0].matches) {p='phone';d.add(p,'lte-tablet','lte-desktop')}
                    else d.add(p,'gte-tablet','gte-'+p,'lte-'+p)
                    if (typeof jQuery == 'function') jQuery(window).trigger('breakpoint',p)
                }for (i=0; i<4; i++){f(q[i]);q[i].addListener(f)}
            }})(window.matchMedia,document.documentElement.classList,'(min-width:','em)')
    </script>
    <script src="https://use.typekit.net/vyg4sek.js"></script>
    <script>try {
            Typekit.load({async: true})
        } catch (e) {
        console.log(e)
        }</script>

    <link href="/build/main.180a4946.css" rel="stylesheet">

        <script src='https://www.google.com/recaptcha/api.js' async defer></script>
    <script>
        function login(event) {
            event.preventDefault();
            grecaptcha.execute();
        }
        function onSubmit() {
            document.getElementById('login').submit();
        }
        function onload() {
            var element = document.getElementById('loginButton');
            element.onclick = login;
        }
    </script>

</head>
<body>

<header class="c-site-navigation c-site-navigation--minimal">
    <div class="c-site-navigation__wrapper">
        <div class="container">
            <div class="c-site-navigation__brand">
                <div class="c-site-navigation__logo"><a href="/"><img
                                src="/build/images/logo-frontier.png" alt="Frontier"></a></div>
                <h4>Authentication</h4>
            </div>

            <nav id="main-menu">
                            </nav>
        </div>
    </div>
</header>

    <div class="c-site-masthead" style="background-image: url(/build/images/masthead-frontier.jpg);">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="c-site-masthead__wrapper">
                       <h1>Frontier Login</h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
<main id="app">
    <div class="container" id="main-content">

                    <div class="c-newlink">
        <div class="c-newusers">
            <div class="title-wrapper">
                <h2>New Users</h2>
            </div>
            <p>New users must first create a new account with Frontier, before linking this to their Steam account.</p>
            <a href="https://www.frontierstore.net/customer/account/create/" class="w-60 btn btn-secondary">Create new account</a>
        </div>
        <div class="c-loginform">
            <div class="c-loginform__intro">
                <div class="title-wrapper">
                    <h1>Login</h1>
                </div>
                <p>You need to login and link your Frontier Account to your Steam account in order to play Elite Dangerous.</p>
            </div>

                <div class="c-loginform__platforms">
                    <ul>
                        <li class="login-frontier"><span class="frontier" title="Sign in with Frontier"><img src="/build/images/logo-frontier.svg"/></span></li>
                    </ul>
                </div>
                <form class="c-loginform__container" method="POST" id="login">

                        <div>
                            <label for="username"><span>Email / username</span><span class="required">&nbsp;*</span></label>
                            <input class="form-control" type="text" name="username" id="username" placeholder="you@email.com" required />
                        </div>

                        <div>
                            <label for="password_plain"><span>Password</span><span class="required">&nbsp;*</span></label>
                            <input class="form-control" type="password" name="password_plain" id="password_plain" placeholder="************" required />
                            <a href="https://www.frontierstore.net/customer/account/forgotpassword/" target="_blank" class="minor-label">I've forgotten my password</a>
                        </div>

                        <div class="form-item-recaptcha">
                            <div class="g-recaptcha" data-badge="inline" data-size="invisible"  data-sitekey="6Ld...j1i[40]" data-callback="onSubmit"></div>
                        </div>

                        <div>
                            <button class="w-100 btn btn-primary" id="loginButton">Login</button>
                        </div>
                    </form>
                <p class="note">If you need more help accessing the game, please <a href="https://customersupport.frontier.co.uk/hc/en-us/sections/360003437780-Account-Support">read our FAQ's and guide</a> about how to link your accounts.</p>
                   </div>
    </div>

    </div>
</main>

<footer class="c-corporate-footer">
    <div>
        <figure>
            <a href="https://www.frontier.co.uk" title="Visit Frontier.co.uk"><img
                        src="/build/images/logo-frontier.svg" alt="Frontier"></a>
        </figure>
        <figure><img src="/build/images/logo-cobra.svg" alt="powered by COBRA"></figure>
        <div>
            <nav>
                <ul>
                    <li><a href="https://www.frontier.co.uk/about-us">About Us</a></li>
                    <li><a href="https://www.frontier.co.uk/our-games">Our Games</a></li>
                    <li><a href="https://www.frontier.co.uk/news">News</a></li>
                    <li><a href="https://www.frontier.co.uk/investors">Investors</a></li>
                    <li><a href="https://www.frontier.co.uk/careers">Careers</a>
                    </li>
                </ul>
                <ul class="c-corporate-footer__nav-secondary">
                    <li><a href="https://www.frontier.co.uk/privacy-policy">Privacy Policy & Legal</a></li>
                    <li><a href="https://www.frontier.co.uk/legal/modern-slavery">Modern Slavery Statement</a></li>
                    <li><a href="https://www.frontier.co.uk/privacy-policy/ccpa/do-not-sell">Do Not Sell My Personal
                            Information</a></li>
                    <li><a href="https://www.frontier.co.uk/terms-and-conditions">Terms and Conditions</a></li>
                    <li><a href="https://www.frontierstore.net/">Store</a></li>
                    <li><a href="https://forums.frontier.co.uk/">Forums</a>
                    </li>
                </ul>
                <ul>
                    <li>
                        <a title="Like us on Facebook" href="https://www.facebook.com/FrontierDevelopments"><img
                                    src="/build/images/logo-facebook.svg" alt=""></a>
                    </li>
                    <li>
                        <a title="Follow us on Twitter" href="https://twitter.com/frontierdev"><img
                                    src="/build/images/logo-twitter.svg" alt=""></a>
                    </li>
                    <li>
                        <a title="Subscribe on YouTube" href="https://www.youtube.com/FrontierDevelopments"><img
                                    src="/build/images/logo-youtube.svg" alt=""></a>
                    </li>
                    <li>
                        <a title="Connect with us on LinkedIn"
                           href="https://www.linkedin.com/company/frontier-developments"><img
                                    src="/build/images/logo-linkedin.svg" alt=""></a>
                    </li>
                </ul>
            </nav>
            <p>© 2024 Frontier Developments plc. </p>
            <p><span>Company Registration No: 02892559</span><span>VAT Registration No: 636 8133 30</span></p></div>
    </div>
</footer>

<script src="/build/app.336768c0.js"></script>
    <script>
        onload();
    </script>

</body>
</html>
demonbane commented 7 months ago

Have you tried launching the game manually from Steam? The error output mentions that you have to link your Frontier account with Steam, but I don't know if that's a real error or just the default that comes up on that page.

rfvgyhn commented 7 months ago

Are you still having this issue?

This response appears when the Frontier API isn't able to verify your Steam account owns the game which can happen when:

  1. You haven't linked your Steam account to your Frontier account yet.
  2. Steam and Frontier aren't working together properly. I don't know if this is an issue on Steam's or Frontier's end but it happens intermittently with both this launcher and the default launcher (though the error message doesn't show the HTML in the default launcher). You can usually try again in a few minutes (though sometimes it can take a while unfortunately).
johrad commented 7 months ago

Hello! the issue appear to have resolved itself overnight, had to link my steam account with the official launcher a couple of times before it realized i have already linked them.