Hi everyone, it’s me again,
I followed this documentation , about " Adding E-Commerce to the Open edX Platform", and i have an issue when i want to create a “Program Offer”. There is the error:
Jul 22 23:43:59 lms [service_variant=ecommerce][django.request] ERROR [lms 1862] [/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/exception.py:135] - Internal Server Error: /programs/offers/new/
Traceback (most recent call last):
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner
return func(*args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
return bound_func(*args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/edx/app/ecommerce/ecommerce/ecommerce/core/views.py", line 105, in dispatch
return super(StaffOnlyMixin, self).dispatch(request, *args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 217, in post
return super(BaseCreateView, self).post(request, *args, **kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 183, in post
return self.form_valid(form)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 162, in form_valid
self.object = form.save()
File "/edx/app/ecommerce/ecommerce/ecommerce/programs/forms.py", line 85, in save
program = client.get_program(program_uuid)
File "/edx/app/ecommerce/ecommerce/ecommerce/programs/api.py", line 41, in get_program
program = self.client.programs(program_uuid).get()
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/slumber/__init__.py", line 155, in get
resp = self._request("GET", params=kwargs)
File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/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)
HttpNotFoundError: Client Error 404: http://lms.eduworld-cm.com:18381/programs/0df9e4bb-896d-4b97-8cbe-97d219475bc4/
I created the Program in http://mylms:18381/admin/course_metadata/program , but when i go to http://myecomerce/programs/offers/new/ , i have this
Jul 22 23:52:35 lms [service_variant=discovery][django.request] WARNING [lms 5218] [/edx/app/discovery/venvs/discovery/lib/python3.5/site-packages/django/core/handlers/base.py:152] - Not Found: /programs/0df9e4bb-896d-4b97-8cbe-97d219475bc4/
Have i missed something?