Saving Ecommerce Edx

Error! Failed to publish commerce data for course-v1:SolaceTech+Demo001+2019 to LMS. Incorrect authentication credentials.

I get an error when adding a course on e-commerce. What should I do?

@taufanbudiman Could you provide more details? Have you looked at the logs? What have you tried to attempt to debug this? Providing more information makes it easier to diagnose your issue.

Oh Sory, this my logs in /edx/var/ecommerce/edx.log

Feb 17 15:27:23 dev [service_variant=ecommerce][edx_rest_framework_extensions.auth.bearer.authentication] ERROR [dev 26378] [/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/bearer/authentication.py:75] - Failed to retrieve user info. Unable to authenticate.
Feb 17 15:27:40 dev [service_variant=ecommerce][edx_rest_framework_extensions.auth.bearer.authentication] ERROR [dev 26378] [/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/bearer/authentication.py:75] - Failed to retrieve user info. Unable to authenticate.
Feb 19 21:54:45 dev [service_variant=ecommerce][ecommerce.courses.models] INFO [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/courses/models.py:205] - Retrieved course seat child product with certificate type [verified] for [course-v1:edX+DemoX+Demo_Course] from database.
Feb 19 21:54:45 dev [service_variant=ecommerce][ecommerce.courses.models] INFO [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/courses/models.py:247] - Retrieved course seat product stock record with certificate type [verified] for [course-v1:edX+DemoX+Demo_Course] from database.
Feb 19 21:54:45 dev [service_variant=ecommerce][ecommerce.courses.models] INFO [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/courses/models.py:205] - Retrieved course seat child product with certificate type for [course-v1:edX+DemoX+Demo_Course] from database.
Feb 19 21:54:45 dev [service_variant=ecommerce][ecommerce.courses.models] INFO [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/courses/models.py:247] - Retrieved course seat product stock record with certificate type for [course-v1:edX+DemoX+Demo_Course] from database.
Feb 19 21:54:47 dev [service_variant=ecommerce][ecommerce.courses.publishers] ERROR [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/courses/publishers.py:112] - Failed to publish commerce data for [course-v1:edX+DemoX+Demo_Course] to LMS. Status was [401]. Body was [{“detail”:“Incorrect authentication credentials.”}]. data : {u’verification_deadline’: ‘2020-10-24T02:53:19+00:00’, u’modes’: [{u’sku’: u’8CF08E5’, u’name’: u’verified’, u’price’: 149, u’expires’: ‘2019-10-25T02:53:00+00:00’, u’currency’: u’USD’, u’bulk_sku’: None}, {u’sku’: u’68EFFFF’, u’name’: ‘audit’, u’price’: 0, u’expires’: None, u’currency’: u’USD’, u’bulk_sku’: None}], u’id’: u’course-v1:edX+DemoX+Demo_Course’, u’name’: u’edX Demonstration Course’}, commerce : <edx_rest_api_client.client.EdxRestApiClient object at 0x7f79447a4e50>
Traceback (most recent call last):
File “/edx/app/ecommerce/ecommerce/ecommerce/courses/publishers.py”, line 103, in publish
commerce_api_client.courses(course_id).put(data=data)
File “/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/slumber/init.py”, line 175, in put
resp = self._request(“PUT”, data=data, files=files, 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)
HttpClientError: Client Error 401: https://lms.tenderhub.co/api/commerce/v1/courses/course-v1:edX+DemoX+Demo_Course/
Feb 19 21:54:47 dev [service_variant=ecommerce][ecommerce.extensions.api.serializers] ERROR [dev 26376] [/edx/app/ecommerce/ecommerce/ecommerce/extensions/api/serializers.py:498] - Failed to save and publish [course-v1:edX+DemoX+Demo_Course]: [Failed to publish commerce data for course-v1:edX+DemoX+Demo_Course to LMS. Incorrect authentication credentials.]
Traceback (most recent call last):
File “/edx/app/ecommerce/ecommerce/ecommerce/extensions/api/serializers.py”, line 495, in save
raise Exception(resp_message)
Exception: Failed to publish commerce data for course-v1:edX+DemoX+Demo_Course to LMS. Incorrect authentication credentials.