Hello,
thank you for your thorough answer. It basically seems that one of the POST requests is not triggered:
The CMS logs seem quite equivalent:
tutor_local-cms-1 | 2023-01-17 16:05:46,293 INFO 7 [tracking] [user 6] [ip 194.230.158.119] logger.py:41 - {"name": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "context": {"user_id": 6, "path": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "martibosch", "session": "def6beb60d6f5969296176e4dea92346", "ip": "194.230.158.119", "agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0", "host": "studio.courses.africancitieslab.org", "referer": "https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-01-17T16:05:46.293179+00:00", "event_type": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "event_source": "server", "page": null}
I observe the same requests when editing the demo course in the demo platform:
However, the block is properly updated.
In a few cases, the save button works properly in our platform, however the triggered requests seem to be the same:
and the corresponding logs (I am attaching all the corresponding requests in case they are useful):
tutor_local-cms-1 | 2023-01-17 16:27:43,208 INFO 25 [tracking] [user 6] [ip 194.230.158.119] logger.py:41 - {"name": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681", "context": {"user_id": 6, "path": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "martibosch", "session": "def6beb60d6f5969296176e4dea92346", "ip": "194.230.158.119", "agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0", "host": "studio.courses.africancitieslab.org", "referer": "https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-01-17T16:27:43.208446+00:00", "event_type": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681", "event_source": "server", "page": null}
tutor_local-cms-1 | 2023-01-17 16:27:43,227 INFO 25 [openedx.core.djangoapps.cors_csrf.helpers] [user 6] [ip 194.230.158.119] helpers.py:64 - Origin 'https://studio.courses.africancitieslab.org' was not in `CORS_ORIGIN_WHITELIST`; full referer was 'https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5' and requested host was 'studio.courses.africancitieslab.org'; CORS_ORIGIN_ALLOW_ALL=False
tutor_local-cms-1 | [pid: 25|app: 0|req: 768/3672] 172.18.0.8 () {62 vars in 3930 bytes} [Tue Jan 17 16:27:43 2023] POST /xblock/block-v1%3AEPFL%2BVA_MTU%2B2022%2Btype%40html%2Bblock%40aab222e4d92c4eb28e53c90171f89681 => generated 4949 bytes in 223 msecs (HTTP/1.1 200) 7 headers in 379 bytes (1 switches on core 0)
tutor_local-cms-1 | 2023-01-17 16:27:43,520 INFO 27 [tracking] [user 6] [ip 194.230.158.119] logger.py:41 - {"name": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681/reorderable_container_child_preview", "context": {"user_id": 6, "path": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681/reorderable_container_child_preview", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "martibosch", "session": "def6beb60d6f5969296176e4dea92346", "ip": "194.230.158.119", "agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0", "host": "studio.courses.africancitieslab.org", "referer": "https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {\"_\": [\"1673972484605\"]}, \"POST\": {}}", "time": "2023-01-17T16:27:43.520468+00:00", "event_type": "/xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681/reorderable_container_child_preview", "event_source": "server", "page": null}
tutor_local-cms-1 | 2023-01-17 16:27:43,539 INFO 27 [openedx.core.djangoapps.cors_csrf.helpers] [user 6] [ip 194.230.158.119] helpers.py:64 - Origin 'https://studio.courses.africancitieslab.org' was not in `CORS_ORIGIN_WHITELIST`; full referer was 'https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5' and requested host was 'studio.courses.africancitieslab.org'; CORS_ORIGIN_ALLOW_ALL=False
tutor_local-cms-1 | [pid: 27|app: 0|req: 772/3673] 172.18.0.8 () {54 vars in 3842 bytes} [Tue Jan 17 16:27:43 2023] GET /xblock/block-v1:EPFL+VA_MTU+2022+type@html+block@aab222e4d92c4eb28e53c90171f89681/reorderable_container_child_preview?_=1673972484605 => generated 13563 bytes in 260 msecs (HTTP/1.1 200) 7 headers in 508 bytes (1 switches on core 0)
tutor_local-cms-1 | 2023-01-17 16:27:44,003 INFO 26 [tracking] [user 6] [ip 194.230.158.119] logger.py:41 - {"name": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "context": {"user_id": 6, "path": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "martibosch", "session": "def6beb60d6f5969296176e4dea92346", "ip": "194.230.158.119", "agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0", "host": "studio.courses.africancitieslab.org", "referer": "https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-01-17T16:27:44.003494+00:00", "event_type": "/xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5", "event_source": "server", "page": null}
tutor_local-cms-1 | 2023-01-17 16:27:44,022 INFO 26 [openedx.core.djangoapps.cors_csrf.helpers] [user 6] [ip 194.230.158.119] helpers.py:64 - Origin 'https://studio.courses.africancitieslab.org' was not in `CORS_ORIGIN_WHITELIST`; full referer was 'https://studio.courses.africancitieslab.org/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5' and requested host was 'studio.courses.africancitieslab.org'; CORS_ORIGIN_ALLOW_ALL=False
tutor_local-cms-1 | [pid: 26|app: 0|req: 776/3674] 172.18.0.8 () {54 vars in 3797 bytes} [Tue Jan 17 16:27:43 2023] GET /xblock/container/block-v1:EPFL+VA_MTU+2022+type@vertical+block@179320df1fe1464b8f0dded76714e0c5 => generated 11202 bytes in 247 msecs (HTTP/1.1 200) 6 headers in 340 bytes (1 switches on core 0)
At the same time, I just found out that the issue does not happen when using the “Raw” editor (instead of the “Visual”).
Thank you again for your help. Best,
Martí