Internal Server Error While Approving New Users

Hi Meta Team,

We are facing an issue with user approvals in our Discourse instance.

When a new user logs in, they correctly receive the message:

“Your account has not been approved by a staff member yet.”

However, when a staff member/admin tries to approve the pending user, Discourse shows an “Internal Server Error” popup and the approval fails.

Authentication is configured using OAuth2.

Could you please help us understand:

  • What could cause this issue?

  • Are there any known issues with user approval + OAuth2 setup?

  • Which logs/settings should we check for troubleshooting?

Screenshots attached for reference.