(this topic was moved from this conversation)
Hello @regis. I still experience this issue, might even add that mine is a bit weirder.
As shown in the picture above, the /payment url flat out returns a 404 error code. Both LMS and Ecommerce do not show any concerning issues that may relate to the error thrown in the payment page.
LMS Logs:
tutor_local-lms-1 | [pid: 7|app: 0|req: 35/91] [172.18.0.2](http://172.18.0.2/) () {60 vars in 3655 bytes} [Fri Mar 10 09:40:17 2023] GET /oauth2/authorize?client_id=ecommerce-sso&redirect_uri=https%3A%2F%[2Fecommerce.fupi.live](http://2fecommerce.fupi.live/)%2Fcomplete%2Fedx-oauth2%2F%3Fredirect_state%3Dhs6fYkARO8QSCK9LZmf9uo8BgrVClFtf&state=hs6fYkARO8QSCK9LZmf9uo8BgrVClFtf&response_type=code&scope=user_id+profile+email => generated 0 bytes in 42 msecs (HTTP/1.1 302) 7 headers in 475 bytes (1 switches on core 0)
tutor_local-lms-1 | 2023-03-10 09:40:17,383 INFO 19 [tracking] [user None] [ip [34.142.48.13](http://34.142.48.13/)] [logger.py:41](http://logger.py:41/) - {"name": "/oauth2/access_token", "context": {"user_id": null, "path": "/oauth2/access_token", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "[34.142.48.13](http://34.142.48.13/)", "agent": "python-requests/2.28.1", "host": "[fupi.live](http://fupi.live/)", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {\"grant_type\": [\"authorization_code\"], \"code\": [\"pLtHP4P2mYYqb5llb7NgkrgV3Ndw45\"], \"client_id\": [\"ecommerce-sso\"], \"client_secret\": [\"NiSQTjfK\"], \"redirect_uri\": [\"https://ecommerce.fupi.live/complete/edx-oauth2/?redirect_state=hs6fYkARO8QSCK9LZmf9uo8BgrVClFtf\"], \"token_type\": [\"jwt\"]}}", "time": "2023-03-10T09:40:17.383352+00:00", "event_type": "/oauth2/access_token", "event_source": "server", "page": null}
tutor_local-lms-1 | [pid: 19|app: 0|req: 36/92] [172.18.0.2](http://172.18.0.2/) () {42 vars in 589 bytes} [Fri Mar 10 09:40:17 2023] POST /oauth2/access_token => generated 835 bytes in 35 msecs (HTTP/1.1 200) 8 headers in 516 bytes (1 switches on core 0)
tutor_local-lms-1 | 2023-03-10 09:40:17,751 INFO 7 [tracking] [user None] [ip [34.142.48.13](http://34.142.48.13/)] [logger.py:41](http://logger.py:41/) - {"name": "/enterprise/api/v1/enterprise-learner/", "context": {"user_id": null, "path": "/enterprise/api/v1/enterprise-learner/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "[34.142.48.13](http://34.142.48.13/)", "agent": "python-requests/2.28.1 edx-rest-api-client/5.5.0 [172.18.0.13](http://172.18.0.13/)", "host": "[fupi.live](http://fupi.live/)", "referer": "", "accept_language": "", "event": "{\"GET\": {\"username\": [\"Calvin\"]}, \"POST\": {}}", "time": "2023-03-10T09:40:17.751632+00:00", "event_type": "/enterprise/api/v1/enterprise-learner/", "event_source": "server", "page": null}
tutor_local-lms-1 | [pid: 7|app: 0|req: 36/93] [172.18.0.2](http://172.18.0.2/) () {40 vars in 1312 bytes} [Fri Mar 10 09:40:17 2023] GET /enterprise/api/v1/enterprise-learner/?username=Calvin => generated 8453 bytes in 26 msecs (HTTP/1.1 404) 7 headers in 665 bytes (1 switches on core 0)
tutor_local-lms-1 | 2023-03-10 09:47:45,166 INFO 19 [tracking] [user None] [ip [149.154.161.214](http://149.154.161.214/)] [logger.py:41](http://logger.py:41/) - {"name": "/enterprise/api/v1/enterprise-learner/", "context": {"user_id": null, "path": "/enterprise/api/v1/enterprise-learner/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "[149.154.161.214](http://149.154.161.214/)", "agent": "TelegramBot (like TwitterBot)", "host": "[fupi.live](http://fupi.live/)", "referer": "", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {\"username\": [\"Calvin\"]}, \"POST\": {}}", "time": "2023-03-10T09:47:45.165813+00:00", "event_type": "/enterprise/api/v1/enterprise-learner/", "event_source": "server", "page": null}
tutor_local-lms-1 | [pid: 19|app: 0|req: 37/94] [172.18.0.2](http://172.18.0.2/) () {42 vars in 826 bytes} [Fri Mar 10 09:47:45 2023] GET /enterprise/api/v1/enterprise-learner/?username=Calvin => generated 8453 bytes in 32 msecs (HTTP/1.1 404) 7 headers in 665 bytes (1 switches on core 0)
tutor_local-lms-1 | 2023-03-10 09:48:28,850 INFO 7 [tracking] [user None] [ip [52.167.144.48](http://52.167.144.48/)] [logger.py:41](http://logger.py:41/) - {"name": "/sitemap.txt", "context": {"user_id": null, "path": "/sitemap.txt", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "[52.167.144.48](http://52.167.144.48/)", "agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/103.0.5060.134 Safari/537.36", "host": "[fupi.live](http://fupi.live/)", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-03-10T09:48:28.850594+00:00", "event_type": "/sitemap.txt", "event_source": "server", "page": null}
tutor_local-lms-1 | [pid: 7|app: 0|req: 37/95] [172.18.0.2](http://172.18.0.2/) () {44 vars in 703 bytes} [Fri Mar 10 09:48:28 2023] GET /sitemap.txt => generated 8385 bytes in 30 msecs (HTTP/1.1 404) 7 headers in 665 bytes (1 switches on core 0)
Ecommerce Logs:
tutor_local-ecommerce-1 | [pid: 11|app: 0|req: 12/54] [172.18.0.2](http://172.18.0.2/) () {60 vars in 1360 bytes} [Fri Mar 10 09:39:58 2023] GET /login/?next=/basket/add/%3Fsku%3DA68A349 => generated 0 bytes in 9 msecs (HTTP/1.1 302) 6 headers in 229 bytes (1 switches on core 0)
tutor_local-ecommerce-1 | [pid: 7|app: 0|req: 14/55] [172.18.0.2](http://172.18.0.2/) () {60 vars in 1382 bytes} [Fri Mar 10 09:39:59 2023] GET /login/edx-oauth2/?next=/basket/add/%3Fsku%3DA68A349 => generated 0 bytes in 13 msecs (HTTP/1.1 302) 9 headers in 714 bytes (1 switches on core 0)
tutor_local-ecommerce-1 | [pid: 11|app: 0|req: 13/56] [172.18.0.2](http://172.18.0.2/) () {60 vars in 3435 bytes} [Fri Mar 10 09:40:17 2023] GET /complete/edx-oauth2/?redirect_state=hs6fYkARO8QSCK9LZmf9uo8BgrVClFtf&code=pLtHP4P2mYYqb5llb7NgkrgV3Ndw45&state=hs6fYkARO8QSCK9LZmf9uo8BgrVClFtf => generated 0 bytes in 73 msecs (HTTP/1.1 302) 10 headers in 646 bytes (1 switches on core 0)
tutor_local-ecommerce-1 | 2023-03-10 09:40:17,681 INFO 7 [ecommerce.extensions.basket.views] /openedx/ecommerce/./ecommerce/extensions/basket/[views.py:430](http://views.py:430/) - Starting payment flow for user [Calvin] for products [['A68A349']].
tutor_local-ecommerce-1 | 2023-03-10 09:40:17,771 INFO 7 [ecommerce.enterprise.api] /openedx/ecommerce/./ecommerce/enterprise/[api.py:199](http://api.py:199/) - Unable to retrieve enterprise learner data for User: Calvin, Exception: 404 Client Error: Not Found for url: https://fupi.live/enterprise/api/v1/enterprise-learner/?username=Calvin
tutor_local-ecommerce-1 | [pid: 7|app: 0|req: 15/57] [172.18.0.2](http://172.18.0.2/) () {60 vars in 3279 bytes} [Fri Mar 10 09:40:17 2023] GET /basket/add/?sku=A68A349 => generated 0 bytes in 121 msecs (HTTP/1.1 303) 7 headers in 246 bytes (1 switches on core 0)
Only caddy and mfe show, in the logs that there is an error somewhere.
Caddy and mfe logs:
tutor_local-mfe-1 | {"level":"error","ts":1678441481.0026057,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"[172.18.0.2:56874](http://172.18.0.2:56874/)","proto":"HTTP/1.1","method":"GET","host":"[apps.fupi.live](http://apps.fupi.live/)","uri":"/payment"},"user_id":"","duration":0.00012625,"size":0,"status":404}
tutor_local-caddy-1 | {"level":"error","ts":1678441481.0028024,"logger":"http.log.access.log4","msg":"handled request","request":{"remote_ip":"[41.59.193.232](http://41.59.193.232/)","remote_port":"3411","proto":"HTTP/2.0","method":"GET","host":"[apps.fupi.live](http://apps.fupi.live/)","uri":"/payment","tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"[apps.fupi.live](http://apps.fupi.live/)"}},"user_id":"","duration":0.00133419,"size":0,"status":404}
We had to downgrade to Nutmeg to get the payment page working. We still have no luck of getting the payment page back up, let alone find out the cause of the issue. Would appreciate any help here.