Error Something went wrong in Order History page

Hello team,
Hope I can get your help to clarify my concerns about the Order History page.

I’m quite new with OpenEdx platform, I tried to enable Ecommerce plugin, It opens the menu Order History however when I click on that menu it shows message “Something went wrong. Refresh this page and try again. If this problem persists, [contact support]”

I check but seem no issue with request, no console error log. Do I miss some settings or any idea to solve this message.

Hi. Can you provide some more information about the error?
Are you using tutor and tutor-ecommerce to set up your openedx instance? what’s the version of each one? how did you set up e-commerce?
Check out the logs of containers if there’s no failed API call or console log.

Hi Emad,
Thank you for help.

I use tutor install local: tutor, version 18.1.3

I don’t see any error from browser inspect or API

mfe-1 | {“level”:“info”,“ts”:1726942655.7746964,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.6”,“remote_port”:“56792”,“client_ip”:“172.18.0.6”,“proto”:“HTTP/1.1”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/favicon.ico”},“bytes_read”:0,“user_id”:“”,“duration”:0.00001147,“size”:0,“status”:0}
caddy-1 | {“level”:“info”,“ts”:1726942655.7748446,“logger”:“http.log.access.log5”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.1”,“remote_port”:“38462”,“client_ip”:“172.18.0.1”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/favicon.ico”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“apps.pmmastery.vn”}},“bytes_read”:0,“user_id”:“”,“duration”:0.00046556,“size”:0,“status”:200}
lms-1 | 2024-09-21 18:17:35,787 INFO 1 [tracking] [user 4] [ip 172.18.0.6] logger.py:41 - {“name”: “/api/mfe_config/v1”, “context”: {“user_id”: 4, “path”: “/api/mfe_config/v1”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “phamdocaohiep”, “session”: “71b34520f7fb3f2216daf7dbc6d02f32”, “ip”: “172.18.0.6”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0”, “host”: “pmmastery.vn”, “referer”: “Order History | edX”, “accept_language”: “en-US,en;q=0.9,en-GB;q=0.8”, “event”: “{"GET": {"mfe": ["orders"]}, "POST": {}}”, “time”: “2024-09-21T18:17:35.786969+00:00”, “event_type”: “/api/mfe_config/v1”, “event_source”: “server”, “page”: null}
mfe-1 | {“level”:“info”,“ts”:1726942655.8047159,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.6”,“remote_port”:“56792”,“client_ip”:“172.18.0.6”,“proto”:“HTTP/1.1”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/api/mfe_config/v1?mfe=orders”},“bytes_read”:0,“user_id”:“”,“duration”:0.025403251,“size”:1860,“status”:200}
caddy-1 | {“level”:“info”,“ts”:1726942655.8051467,“logger”:“http.log.access.log5”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.1”,“remote_port”:“38462”,“client_ip”:“172.18.0.1”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/api/mfe_config/v1?mfe=orders”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“apps.pmmastery.vn”}},“bytes_read”:0,“user_id”:“”,“duration”:0.02617041,“size”:729,“status”:200}
lms-1 | [pid: 1|app: 0|req: 74/184] 172.18.0.13 () {60 vars in 3320 bytes} [Sat Sep 21 18:17:35 2024] GET /api/mfe_config/v1?mfe=orders => generated 1860 bytes in 24 msecs (HTTP/1.1 200) 9 headers in 400 bytes (1 switches on core 0)
mfe-1 | {“level”:“info”,“ts”:1726942655.8405824,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.6”,“remote_port”:“56792”,“client_ip”:“172.18.0.6”,“proto”:“HTTP/1.1”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/api/v2/orders/?username=phamdocaohiep&page=1&page_size=20”},“bytes_read”:0,“user_id”:“”,“duration”:0.000008077,“size”:0,“status”:0}
caddy-1 | {“level”:“info”,“ts”:1726942655.8407204,“logger”:“http.log.access.log5”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.1”,“remote_port”:“38462”,“client_ip”:“172.18.0.1”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“apps.pmmastery.vn”,“uri”:“/api/v2/orders/?username=phamdocaohiep&page=1&page_size=20”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“apps.pmmastery.vn”}},“bytes_read”:0,“user_id”:“”,“duration”:0.000416028,“size”:0,“status”:200}
lms-1 | 2024-09-21 18:17:35,845 INFO 39 [tracking] [user 4] [ip 172.18.0.1] logger.py:41 - {“name”: “/api/user/v1/accounts/phamdocaohiep”, “context”: {“user_id”: 4, “path”: “/api/user/v1/accounts/phamdocaohiep”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “phamdocaohiep”, “session”: “71b34520f7fb3f2216daf7dbc6d02f32”, “ip”: “172.18.0.1”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0”, “host”: “pmmastery.vn”, “referer”: “https://apps.pmmastery.vn/”, “accept_language”: “en-US,en;q=0.9,en-GB;q=0.8”, “event”: “{"GET": {}, "POST": {}}”, “time”: “2024-09-21T18:17:35.845440+00:00”, “event_type”: “/api/user/v1/accounts/phamdocaohiep”, “event_source”: “server”, “page”: null}
lms-1 | 2024-09-21 18:17:35,845 INFO 1 [tracking] [user 4] [ip 172.18.0.1] logger.py:41 - {“name”: “/theming/asset/images/logo.png”, “context”: {“user_id”: 4, “path”: “/theming/asset/images/logo.png”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “phamdocaohiep”, “session”: “71b34520f7fb3f2216daf7dbc6d02f32”, “ip”: “172.18.0.1”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0”, “host”: “pmmastery.vn”, “referer”: “https://apps.pmmastery.vn/”, “accept_language”: “en-US,en;q=0.9,en-GB;q=0.8”, “event”: “{"GET": {}, "POST": {}}”, “time”: “2024-09-21T18:17:35.845458+00:00”, “event_type”: “/theming/asset/images/logo.png”, “event_source”: “server”, “page”: null}
lms-1 | [pid: 1|app: 0|req: 75/185] 172.18.0.6 () {60 vars in 3428 bytes} [Sat Sep 21 18:17:35 2024] GET /theming/asset/images/logo.png => generated 0 bytes in 25 msecs (HTTP/1.1 302) 7 headers in 379 bytes (1 switches on core 0)
caddy-1 | {“level”:“info”,“ts”:1726942655.863911,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.1”,“remote_port”:“40384”,“client_ip”:“172.18.0.1”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“pmmastery.vn”,“uri”:“/theming/asset/images/logo.png”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“pmmastery.vn”}},“bytes_read”:0,“user_id”:“”,“duration”:0.026835813,“size”:0,“status”:302}
lms-1 | [pid: 39|app: 0|req: 68/186] 172.18.0.6 () {64 vars in 3471 bytes} [Sat Sep 21 18:17:35 2024] GET /api/user/v1/accounts/phamdocaohiep => generated 1168 bytes in 38 msecs (HTTP/1.1 200) 9 headers in 446 bytes (1 switches on core 0)
caddy-1 | {“level”:“info”,“ts”:1726942655.8773332,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“172.18.0.1”,“remote_port”:“40384”,“client_ip”:“172.18.0.1”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“pmmastery.vn”,“uri”:“/api/user/v1/accounts/phamdocaohiep”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“pmmastery.vn”}},“bytes_read”:0,“user_id”:“”,“duration”:0.040283482,“size”:547,“status”:200}

image

I suspected that there might be no related logs since this is running using tutor local|k8s launch command (and not dev). I cannot help if there are no error logs. also, consider that the Ecommerce project is deprecated and it’s in maintenance mode.