Skip to content

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

Description

@throwawaynodebbissue

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions