Ecommerce basket issue

103 views
Skip to first unread message

Mark Davies Tan

unread,
Jul 11, 2018, 5:07:44 AM7/11/18
to Open edX operations
Hi all,
I tried setting a course as Professional Education type.
Now when I try enrolling to it, I get redirected to this link:
which then shows up as Not Found.

Any idea on why I can't seem to load my basket?

Trinh Nguyen

unread,
Jul 11, 2018, 9:18:19 PM7/11/18
to Open edX operations
Hi Mark,

There must be some useful logs that you can show us.

Thanks,


Trinh Nguyen | Founder





--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/36c9fb32-0e66-4e70-ba1b-ee0ab159045f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Davies Tan

unread,
Jul 11, 2018, 9:37:02 PM7/11/18
to Open edX operations
Hi Trinh,,

In my ecommerce/edx.log, 
I see this
  •  [/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/handlers/base.py:152] - Not Found: /basket/single-item/
  • ConnectionError: HTTPSConnectionPool(host='lms-url', port=18381): Max retries exceeded with url: /course_runs/course-v1:Ministry+MLDCNTDYMT+2018_Q3/?partner=edX (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f63c154e5d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
From what I see in my netstat, I dont see any process running that uses port 18381. I noticed that this is the same url and port that I placed on the discovery_api_url on creation of the ecommerce site with the create_or_update_site command.
Is that what's causing the issue? That I don't seem to have discovery running?

Thanks,
Mark

Mark Davies Tan

unread,
Jul 11, 2018, 9:44:18 PM7/11/18
to Open edX operations
I also saw this

[/edx/app/ecommerce/ecommerce/ecommerce/extensions/basket/views.py:161] - Failed to retrieve data from Discovery Service for course [course-v1:Ministry+MLDCNTDYMT+2018_Q3].

Trinh Nguyen

unread,
Jul 11, 2018, 9:46:45 PM7/11/18
to Open edX operations
I believe you can get more logs. Those logs do not matter.



Trinh Nguyen | Founder




Mark Davies Tan

unread,
Jul 11, 2018, 10:10:57 PM7/11/18
to Open edX operations
Actually I tried commenting out the line that calls the discovery_api_client in /edx/app/ecommerce/ecommerce/ecommerce/extensions/basket/views.py and I tried going to /basket/?sku=something instead of /basket/single-item/?sku=something
and I was able to see the checkout screen. Is there any way to edit the commerce configuration in django? I want to change the /basket/single-item to /basket but I dont see an edit option anywhere.

Trinh Nguyen

unread,
Jul 11, 2018, 10:12:06 PM7/11/18
to Open edX operations
I'm not sure about that.


Trinh Nguyen | Founder




Mark Davies Tan

unread,
Jul 11, 2018, 10:16:31 PM7/11/18
to Open edX operations
Ohh ok
Could you point me to the discovery service? just wanna make sure that it's the right service that I'm gonna be trying to install.
Reply all
Reply to author
Forward
0 new messages