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

Error in invitations.js causes a 502 Bad Gateway error and for NodeBB to completely Restart #56

Open
throwawaynodebbissue opened this issue Feb 12, 2021 · 1 comment
Assignees
Labels

Comments

@throwawaynodebbissue
Copy link

throwawaynodebbissue commented Feb 12, 2021

Hi,

I am using NodeBB v1.16.2 and I am only using the default plugins alongside nodebb-plugin-user-invitations. If I don't have nodebb-plugin-user-invitations active users can successfully be redirected after the registration screen back to the home page while being automatically signed in after registration. If I have the plugin enabled, I run into a 502 Bad Gateway screen. The line which is causing the error is line 170 of lib/invitations.js. If I comment out that line the plugin works perfectly fine. The problem is, I don't know what I might be messing with if I remove the "checkConditionAndRewardUser" line from happening. Below is a full output of my log file and you can note that when line 170 fails it causes all of NodeBB to restart.

https://pastebin.com/2GKJF7gm

@yariplus
Copy link
Member

Hey thanks!

Those lines are only for integration with the nodebb-rewards-essentials plugin, removing them should have no other side effects.

I'm surprised this plugin works at all though since it's so old.

Let me know if you run into any more issues and i'll try my best to fix!

@yariplus yariplus self-assigned this Feb 13, 2021
@yariplus yariplus added the bug label Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants