Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: intermittent problems signing in to codebuddies.org #1109

Open
lpatmo opened this issue Feb 9, 2019 · 11 comments
Open

Issue: intermittent problems signing in to codebuddies.org #1109

lpatmo opened this issue Feb 9, 2019 · 11 comments
Labels
[feature] sign-up issues that relate to sign-up and log-in [priority] high high-priority issues [state] backlog the issue has been raised but hasn't yet been looked at, we'll get to it [type] bug something isn't working the way you'd expect or you are unable to accomplish a task

Comments

@lpatmo
Copy link
Member

lpatmo commented Feb 9, 2019

image

Thanks to Annie and Bill for reporting.

Should look in console to see if there are any errors.

@lpatmo lpatmo added the [state] backlog the issue has been raised but hasn't yet been looked at, we'll get to it label Feb 9, 2019
@lpatmo
Copy link
Member Author

lpatmo commented Feb 20, 2019

Windows 7 Chrome + Firefox issues reported by @h2c on Slack:
image

image

@lpatmo lpatmo added [priority] high high-priority issues [type] bug something isn't working the way you'd expect or you are unable to accomplish a task labels Feb 20, 2019
@lpatmo
Copy link
Member Author

lpatmo commented Feb 20, 2019

The error is happening on line 18 of .meteor/local/build/programs/web.browser/packages/oauth/end_of_popup_response.js, and this is line 18: if (window.opener && window.opener.Package &&

Full code:


  var config = JSON.parse(document.getElementById("config").innerHTML);

  if (config.setCredentialToken) {
    var credentialToken = config.credentialToken;
    var credentialSecret = config.credentialSecret;

    if (config.isCordova) {
      var credentialString = JSON.stringify({
        credentialToken: credentialToken,
        credentialSecret: credentialSecret
      });

      window.location.hash = credentialString;
    }

    if (window.opener && window.opener.Package &&
          window.opener.Package.oauth) {
      window.opener.Package.oauth.OAuth._handleCredentialSecret(
        credentialToken, credentialSecret);
    } else {
      try {
        localStorage[config.storagePrefix + credentialToken] = credentialSecret;
      } catch (err) {
        // We can't do much else, but at least close the popup instead
        // of having it hang around on a blank page.
      }
    }
  }

  if (! config.isCordova) {
    document.getElementById("completedText").style.display = "block";
    document.getElementById("loginCompleted").onclick = function(){ window.close(); };
    window.close();
  }
})();

@wuworkshop
Copy link
Collaborator

I initially thought this was a Windows-only error, but I just now had an issue logging in using Slack. I didn't get the first error message in h2c's screenshot. I did get the second error message:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

After a couple of tries, I was able to log in. This is on macOS High Sierra + Firefox 65.0

@lpatmo
Copy link
Member Author

lpatmo commented Feb 20, 2019

@wuworkshop Thank you! Maybe that other issue has higher weight too; will look into it. :)

@wuworkshop wuworkshop pinned this issue Feb 21, 2019
@lpatmo
Copy link
Member Author

lpatmo commented Feb 24, 2019

@tgrrr also reports problems logging in from Chrome mobile.

@billglover billglover changed the title Windows/Chrome login issues? Issue: intermittent problems signing in to codebuddies.org Feb 25, 2019
@angelocordon
Copy link
Contributor

Definitely something weird going on - I've signed on once, then refreshed about two or three times (without signing on again) and the session finally started.

@billglover billglover added the [feature] sign-up issues that relate to sign-up and log-in label Mar 1, 2019
@cbelsole
Copy link
Contributor

I looked into this a little and was not able to recreate the login issue. I did experience the one @angelocordon referenced. My guess is that it is a server-side syncing issue. The client code looks good and once the server is "warm" the problem does not happen again.

@lpatmo
Copy link
Member Author

lpatmo commented Mar 29, 2019

Encountered by @cbelsole:
image

I have no idea what the string of characters at the top is (starting from data:application/jaascript;base64... but I would like to click on it if I ever encounter it and see where it's coming from (hangouts line 1??)

@angelocordon
Copy link
Contributor

angelocordon commented Mar 29, 2019

That's weird... kind of looks like an SVG data being set as a background property for an icon

@Lauro235
Copy link

Im having trouble signing in via git hub. I have an email co firming that code buddies has been allocated its github permissions, and I can click the link and see it. But if I click applications from git hub neither type of application shows codebuddies. When I log into codebuddies via github, I get redirected to codebuddies page without completing sign in.. Not sure if anyone has experienced this?

@lpatmo
Copy link
Member Author

lpatmo commented Oct 28, 2021

@Lauro235 Sorry for missing your message... wanted to note that we're looking into the GitHub issue on #1171. Sorry for the inconvenience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[feature] sign-up issues that relate to sign-up and log-in [priority] high high-priority issues [state] backlog the issue has been raised but hasn't yet been looked at, we'll get to it [type] bug something isn't working the way you'd expect or you are unable to accomplish a task
Projects
None yet
Development

No branches or pull requests

6 participants