Error in the enable badges using badgr on tutor openedx nutmeg release

Hello everyone,

I’ve deployed with tutor the nutmeg version of openedx and I want to enable badges.

I’ve followed the steps mentioned on

and also i have followed the below openedx discussions:

  1. How to implement Open edX Tutor badges

  2. Enable badges using badgr on tutor openedx - #2 by BbrSofiane - Open edX - Overhang.IO

  3. Enable badges using Tutor Open Edx

set all below parameters in the file to configure the badges in the lms:

    "BADGR_USERNAME": "<your_username>",
    "BADGR_PASSWORD": "<your_pass>",
    "BADGR_TOKENS_CACHE_KEY": "<token_key>",
    "BADGR_BASE_URL": "<badgr_url>",
    "BADGR_ISSUER_SLUG": "badges",

But when create a new course and register user and complete the course → click on request certificate button which is on the progress page facing below error, certificate is generated but because of this error
I can’t obtain any badges in the certificate and on profile page.

Error calling create_course_badge in Signal.send_robust() (400 Client Error: Bad Request for url:
lms-1  | Traceback (most recent call last):
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/models/", line 581, in get_or_create
lms-1  |     return self.get(**kwargs), False
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/models/", line 435, in get
lms-1  |     raise self.model.DoesNotExist(
lms-1  | lms.djangoapps.certificates.models.GeneratedCertificate.DoesNotExist: GeneratedCertificate matching query does not exist.
lms-1  | 
lms-1  | During handling of the above exception, another exception occurred:
lms-1  | 
lms-1  | Traceback (most recent call last):
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/dispatch/", line 212, in send_robust
lms-1  |     response = receiver(signal=self, sender=sender, **named)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/certificates/", line 1241, in create_course_badge
lms-1  |     course_badge_check(user, course_key)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/", line 27, in wrapped
lms-1  |     return function(*args, **kwargs)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/events/", line 134, in course_badge_check
lms-1  |     badge_class.award(user, evidence_url=evidence)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/", line 134, in award
lms-1  |     return self.backend.award(self, user, evidence_url=evidence_url)  # lint-amnesty, pylint: disable=no-member
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/backends/", line 339, in award
lms-1  |     return self._create_assertion(badge_class, user, evidence_url)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/backends/", line 189, in _create_assertion
lms-1  |     self._log_if_raised(response, data)
lms-1  |   File "/openedx/edx-platform/lms/djangoapps/badges/backends/", line 95, in _log_if_raised
lms-1  |     response.raise_for_status()
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/requests/", line 960, in raise_for_status
lms-1  |     raise HTTPError(http_error_msg, response=self)

please guide me on what can I do ….

Thanks in Advance :slightly_smiling_face: