mitodl / micromasters

Portal for learners and course teams to access MITx Micromasters® programs
https://mm.mit.edu
BSD 3-Clause "New" or "Revised" License
29 stars 17 forks source link

500 errors from course enrollments API #4195

Open pdpinch opened 5 years ago

pdpinch commented 5 years ago

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:

  1. log a meaningful error that includes the edx course key that failed to enroll
  2. handle the error on the front end and let the user know that something went wrong

Internal Server Error: /api/v0/course_enrollments/

https://sentry.io/mit-office-of-digital-learning/micromasters/issues/766883675/?referrer=github_plugin

Internal Server Error: /api/v0/course_enrollments/
pdpinch commented 5 years ago

This error message address #1 above. It's clear which course was affected.

Sentry issue: MICROMASTERS-BP