Error 500 When Enrolling in Course via REST API

Hey guys… :waving_hand:
I’m encountering an HTTP 500 Internal Server Error when attempting to enroll a learner in a course using Open edX’s REST enrollment endpoint (/api/enrollment/v1/enrollment). The same request works in our staging environment, but production consistently fails.

What I’ve checked:

  • Verified JWT token and scopes are identical in both environments
  • Compared settings file—no obvious differences
  • Checked LMS logs—no stack trace, just a 500 response

Recently I also started learning flutter training in chennai and Has anyone seen this issue before, or know of common causes? Could it be related to enrollment pipeline, site configuration, or missing migrations?

Thanks in advance!