This error isn't supposed to happen, but there are occassional, short-lived mismatches between when we think a course will open for enrollment and when it actually opens for enrollment.
We should:
log a meaningful error that includes the edx course key that failed to enroll
handle the error on the front end and let the user know that something went wrong
Internal Server Error: /api/v0/course_enrollments/
This error isn't supposed to happen, but there are occassional, short-lived mismatches between when we think a course will open for enrollment and when it actually opens for enrollment.
We should:
Internal Server Error: /api/v0/course_enrollments/
https://sentry.io/mit-office-of-digital-learning/micromasters/issues/766883675/?referrer=github_plugin