Server error log
XF\PrintableException: An error occurred while connecting with Discord. Please try again later.: Client error: [ICODE]GET https://discord.com/api/guilds/774003652284383242/members/293078258793054209?limit=1000[/ICODE] resulted in a [ICODE]403 Forbidden[/ICODE] response: {"message": "Missing Access", "code": 50001}
src/addons/EWR/Discord/Repository/Discord.php:60
Generated by: Unknown account
Mar 19, 2022 at 5:59 PM
Stack trace
#0 src/addons/EWR/Discord/Repository/Discord.php(78): EWR\Discord\Repository\Discord->getGuild('/members/293078...')
#1 src/addons/EWR/Discord/Repository/Discord.php(288): EWR\Discord\Repository\Discord->patchMember(Object(Snog\Forms\XF\Entity\User), Object(EWR\Discord\Entity\UserConnectedAccount))
#2 src/addons/EWR/Discord/Cron/Sync.php(9): EWR\Discord\Repository\Discord->syncDiscord()
#3 src/XF/Job/Cron.php(37): EWR\Discord\Cron\Sync::syncDiscord(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#5 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#7 job.php(43): XF\Job\Manager->runQueue(false, 8)
#8 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(62) "https://forum.cadojrp.com/threads/ryzes-staff-application.141/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Is support for this Add-on like gone? Or there isn't any official place for support but here
An error occurred while connecting with Discord. Please try again later.:
Client error: GET https://discord.com/api/guilds/774003652284383242/members/293078258793054209?limit=1000 resulted in a
403 Forbidden response: {"message": "Missing Access", "code": 50001}
This account's email is already associated with another member. Please log into that account to associate this account
Yet it isn’t. That’s never the case lol The forum had 17 members. How can one user’s discord become associated with another members profile on the forum. Is that something that happens by design with the Addon because I don’t understand how the message pops up when there are 2 different users in question.Their Discord is already associated with another member.
Honestly it could be that there is only 10 users on the forum registered all of the accounts have their correct discord accounts associated to their profiles.Yet it isn’t. That’s never the case lol The forum had 17 members. How can one user’s discord become associated with another members profile on the forum. Is that something that happens by design with the Addon because I don’t understand how the message pops up when there are 2 different users in question.
One user automatically gets linked to the other or something lmfao not sure if I get the add on I understand it’s purpose but it’s functionality not one bit when it comes to getting that message.
On my forum I only allow users to login via discord using this add-on so there’s no way they could’ve “associated” another users discord account under their profile.
Help me understand the process in that.
Because there hasn’t been any report that someone has done that.
Each time that it happens the user that is in question when receiving that error their discord becomes unlinked from their profile. BUT the problem is not someone else linking that users discord to their profile as they already have theirs on their profile lol
NOT it either lol like what manThen the email linked to their DISCORD ACCOUNT is already linked to a different FORUM ACCOUNT.
I mean I’ve checked plenty of times because it occurs every few users it’ll literally be a new forum user and they’d get that error a few days or hours after they register.Discord enforced email verification. When you login with Discord, it reinforces that verification. If you are trying to link a forum user to a discord user, and the email that belongs to that discord account, belongs to a DIFFERENT forum user (though not necessarily a different discord user), you will get that error.
// We know the account isn't associated, but if its email matches someone else, we can't continue.
// (If it matches our current account, we just disregard it.)
if ($providerData->email)
{
$emailUser = $this->em()->findOne('XF:User', ['email' => $providerData->email]);
if ($emailUser && $emailUser->user_id != $visitor->user_id)
{
return $this->error(\XF::phrase('this_accounts_email_is_already_associated_with_another_member'));
}
}
Hmm... well I just did a code search on the error. And it's not actually from Discord. It's part of the XenForo core... not even a part of this specific addon, but XenForo itself. This is the relevant code:
Code:// We know the account isn't associated, but if its email matches someone else, we can't continue. // (If it matches our current account, we just disregard it.) if ($providerData->email) { $emailUser = $this->em()->findOne('XF:User', ['email' => $providerData->email]); if ($emailUser && $emailUser->user_id != $visitor->user_id) { return $this->error(\XF::phrase('this_accounts_email_is_already_associated_with_another_member')); } }
This code specifically says that the email from the provider (Discord account) is matching an existing XF:User (forum account). As I said before.
I find that Discord produces a lot of errors in the first place. It's not as bad as Twitch, but it's still pretty bad. Their API is constantly going down. Every few days, it will go down for a few hours and spam my error logs with connection failures. I honestly would not use Discord to enforce registrations on a production site.
we have 7.4.28 installed and it works.What php versions does it work on?
We use essential cookies to make this site work, and optional cookies to enhance your experience.