Skip to content

[BUG] New login issues #1182

@lpatmo

Description

@lpatmo

What is the current behavior?

Undefined error on login (both Slack and GitHub):
image

If I run the app in localhost:3000, both GitHub and Slack login work. But login doesn't work on staging.codebuddies.org and codebuddies.org.

@distalx and I debugged for a couple of hours and found that the API keys in the OAuth Apps at https://github.com/organizations/codebuddies/settings/applications are accurate.

(Note: @distalx also fixed some separate warnings in https://github.com/codebuddies/codebuddies/pull/1181/files, but these turned out not to be related to the login issue.)

Since nothing changed on the code-side, we think the bug is likely related to an update in the oauth or github packages on https://github.com/meteor/meteor, and probably the only way to mitigate is to upgrade Meteor from 1.8 to something more recent.

Separately, this errmsg: 'E11000 duplicate key error collection: meteor.cronHistory index: intendedAt_1_name_1 dup key: { : new Date(1648285200000), : "Hangouts Reminder Job" }', error message that we're seeing in localhost:3000 logs might be related:
image

A separate error in tail -f /var/log/nginx/error.log logs in prod that we saw probably when the URL redirects in https://github.com/organizations/codebuddies/settings/applications were http instead of https:

{"line":"392","file":"oauth_server.js","message":"Error in OAuth Server: redirect_uri_mismatch","time":{"$date":1648197514845},"level":"warn"}

Which browser / OS are affected by this issue? (An isolated way to reproduce the bug)

This affects all users who've logged out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions