Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix 500 internal server error on ecommerce admin.
Browse files Browse the repository at this point in the history
Close #59.
This error was occuring due to lms_user_id not_found.
Requests that are sent to Ecommerce are expected to include the
LMS user id. If they do not include the id, the creator of the request
is responsible for ensuring that Ecommerce already knows the
LMS user id for the user. Requests to Ecommerce will be rejected and
a MissingLmsUserIdException will be raised if Ecommerce cannot find a
LMS user id for the affected user(s), unless the
allow_missing_lms_user_id waffle switch is enabled.
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Dec 11, 2023
1 parent 7b5d354 commit f93b2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Fix 500 internal server error due to lms_user_id not found on accessing the ecommerce admin panel. (by @Faraz32123)
1 change: 1 addition & 0 deletions tutorecommerce/templates/ecommerce/tasks/ecommerce/init
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
./manage.py migrate --noinput
./manage.py oscar_populate_countries --initial-only
./manage.py waffle_switch allow_missing_lms_user_id on --create

{% for app_name, app in iter_mfes() %}
{% if app_name == "payment" %}
Expand Down

0 comments on commit f93b2da

Please sign in to comment.