Ecommerce 500 error when accessing the course

i had set up a paid course, but when i click it it shows error 500. I had commerce configured for my web site.
Here is the log of lms:
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/lib/python3.8/contextlib.py”, line 75, in inner
return func(*args, **kwds)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/views/generic/base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/views/generic/base.py”, line 97, in dispatch
return handler(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/utils/decorators.py”, line 45, in _wrapper
return bound_method(*args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/contrib/auth/decorators.py”, line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/lms/djangoapps/verify_student/views.py”, line 401, in get
processors = ecommerce_api_client(request.user).payment.processors.get()
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/slumber/init.py”, line 155, in get
resp = self._request(“GET”, params=kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/slumber/init.py”, line 101, in _request
raise exception_class(“Client Error %s: %s” % (resp.status_code, url), response=resp, content=resp.content)
slumber.exceptions.HttpClientError: Client Error 401: https://ecommerce.example.edu/api/v2/payment/processors/

Here is the log of ecommerce:
Sep 30 17:03:49 ubuntu [service_variant=ecommerce][edx_rest_framework_extensions.auth.jwt.decoder] INFO [ubuntu 2164208] [/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/edx_rest_framework_extensions/auth/jwt/decoder.py:189] - Token decode failed due to mismatched issuer [https://study.example.edu/oauth2]
Sep 30 17:03:49 ubuntu [service_variant=ecommerce][django.request] WARNING [ubuntu 2164208] [/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/utils/log.py:222] - Unauthorized: /api/v2/payment/processors/
Sep 30 17:03:49 ubuntu [service_variant=ecommerce][django.request] WARNING [ubuntu 2164208] [/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/utils/log.py:222] - Unauthorized: /api/v2/payment/processors/
Sep 30 17:03:49 ubuntu [service_variant=ecommerce][django.request] WARNING [ubuntu 2164208] [/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/utils/log.py:222] - Unauthorized: /api/v2/payment/processors/

I still don’t know where the problem is

problem has been resolved. it’s only related to authentication.

1 Like

Glade, you figured it out :slight_smile:

please give a solution for this…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.