codebuddies icon indicating copy to clipboard operation
codebuddies copied to clipboard

[BUG] New login issues

Open lpatmo opened this issue 3 years ago • 0 comments

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.

lpatmo avatar Mar 26 '22 21:03 lpatmo