I am facing this issue with Android app Please check your Internet Connections

Hi all ,

I am very hopefull that you will help me to resolve this issue I am getting an error in my mobile app bug which I am facing in my current setup. I already have configured this ENABLE_OAUTH2_PROVIDER. I am using Nutmeg version with Tutor. I have also shared my django apps config for your refernce. I am seeing this error in html and text component part only videos and some type of assessment is working fine.
issue I am facing

My Django Apps config (android and Login Service for JWT cookies)

But i have not used jwt cookies in my android config.yml file

other config which i have done

lms_1                        | [pid: 7|app: 0|req: 1134/3433] 172.18.0.12 () {52 vars in 1389 bytes} [Sat Feb 25 17:16:46 2023] GET /xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285 => generated 13503 bytes in 73 msecs (HTTP/1.1 404) 6 headers in 355 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:46,155 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/oauth2/login/", "context": {"user_id": null, "path": "/oauth2/login/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:46.155504+00:00", "event_type": "/oauth2/login/", "event_source": "server", "page": null}
lms_1                        | [pid: 23|app: 0|req: 1126/3434] 172.18.0.12 () {44 vars in 1530 bytes} [Sat Feb 25 17:16:46 2023] POST /oauth2/login/ => generated 58 bytes in 16 msecs (HTTP/1.1 401) 8 headers in 546 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:46,194 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "context": {"user_id": null, "path": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "2cfd74540e9333f93fac3adddaadc051", "ip": "103.234.68.10", "agent": "Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safari/537.36 slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:46.194170+00:00", "event_type": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "event_source": "server", "page": null}
lms_1                        | [pid: 7|app: 0|req: 1135/3435] 172.18.0.12 () {52 vars in 1313 bytes} [Sat Feb 25 17:16:46 2023] GET /xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285 => generated 13503 bytes in 73 msecs (HTTP/1.1 404) 6 headers in 355 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:46,323 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/oauth2/login/", "context": {"user_id": null, "path": "/oauth2/login/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:46.323165+00:00", "event_type": "/oauth2/login/", "event_source": "server", "page": null}
lms_1                        | [pid: 23|app: 0|req: 1127/3436] 172.18.0.12 () {44 vars in 1530 bytes} [Sat Feb 25 17:16:46 2023] POST /oauth2/login/ => generated 58 bytes in 16 msecs (HTTP/1.1 401) 8 headers in 546 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:46,365 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "context": {"user_id": null, "path": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "997685820d9fda4af987f0bbec1a221e", "ip": "103.234.68.10", "agent": "Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safari/537.36 slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:46.365261+00:00", "event_type": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285", "event_source": "server", "page": null}
lms_1                        | [pid: 7|app: 0|req: 1136/3437] 172.18.0.12 () {52 vars in 1314 bytes} [Sat Feb 25 17:16:46 2023] GET /xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@html_07d547513285 => generated 13503 bytes in 76 msecs (HTTP/1.1 404) 6 headers in 355 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:46,464 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/oauth2/login/", "context": {"user_id": null, "path": "/oauth2/login/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:46.464652+00:00", "event_type": "/oauth2/login/", "event_source": "server", "page": null}

lms_1                        | [pid: 7|app: 0|req: 1159/3482] 172.18.0.12 () {44 vars in 1531 bytes} [Sat Feb 25 17:16:51 2023] POST /oauth2/login/ => generated 58 bytes in 16 msecs (HTTP/1.1 401) 8 headers in 546 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:51,268 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "context": {"user_id": null, "path": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "150ecb1e61f094d8d08e63d55612ac3d", "ip": "103.234.68.10", "agent": "Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safari/537.36 slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:51.267968+00:00", "event_type": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "event_source": "server", "page": null}
lms_1                        | [pid: 23|app: 0|req: 1150/3483] 172.18.0.12 () {52 vars in 1306 bytes} [Sat Feb 25 17:16:51 2023] GET /xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways => generated 13503 bytes in 76 msecs (HTTP/1.1 404) 6 headers in 355 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:51,360 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/oauth2/login/", "context": {"user_id": null, "path": "/oauth2/login/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:51.360280+00:00", "event_type": "/oauth2/login/", "event_source": "server", "page": null}
lms_1                        | [pid: 7|app: 0|req: 1160/3484] 172.18.0.12 () {44 vars in 1531 bytes} [Sat Feb 25 17:16:51 2023] POST /oauth2/login/ => generated 58 bytes in 16 msecs (HTTP/1.1 401) 8 headers in 546 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:16:51,396 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "context": {"user_id": null, "path": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "13fc367d07c42388b44cca86b0602821", "ip": "103.234.68.10", "agent": "Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safari/537.36 slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:16:51.396719+00:00", "event_type": "/xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways", "event_source": "server", "page": null}
lms_1                        | [pid: 23|app: 0|req: 1151/3485] 172.18.0.12 () {52 vars in 1304 bytes} [Sat Feb 25 17:16:51 2023] GET /xblock/block-v1:edX+DemoX+Demo_Course+type@html+block@700x_pathways => generated 13503 bytes in 73 msecs (HTTP/1.1 404) 6 headers in 355 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:17:01,734 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/api/courses/v1/blocks/", "context": {"user_id": null, "path": "/api/courses/v1/blocks/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {\"depth\": [\"all\"], \"requested_fields\": [\"contains_gated_content,show_gated_sections,special_exam_info,graded,format,student_view_multi_device,due,completion\"], \"student_view_data\": [\"video,discussion\"], \"block_counts\": [\"video\"], \"nav_depth\": [\"3\"], \"username\": [\"android\"], \"course_id\": [\"course-v1:edX+DemoX+Demo_Course\"]}, \"POST\": {}}", "time": "2023-02-25T17:17:01.733949+00:00", "event_type": "/api/courses/v1/blocks/", "event_source": "server", "page": null}
lms_1                        | 2023-02-25 17:17:01,748 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/api/courses/v1/blocks/", "context": {"user_id": null, "path": "/api/courses/v1/blocks/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {\"depth\": [\"all\"], \"requested_fields\": [\"contains_gated_content,show_gated_sections,special_exam_info,graded,format,student_view_multi_device,due,completion\"], \"student_view_data\": [\"video,discussion\"], \"block_counts\": [\"video\"], \"nav_depth\": [\"3\"], \"username\": [\"android\"], \"course_id\": [\"course-v1:edX+DemoX+Demo_Course\"]}, \"POST\": {}}", "time": "2023-02-25T17:17:01.748739+00:00", "event_type": "/api/courses/v1/blocks/", "event_source": "server", "page": null}
lms_1                        | [pid: 7|app: 0|req: 1161/3486] 172.18.0.12 () {46 vars in 2168 bytes} [Sat Feb 25 17:17:01 2023] GET /api/courses/v1/blocks/?depth=all&requested_fields=contains_gated_content,show_gated_sections,special_exam_info,graded,format,student_view_multi_device,due,completion&student_view_data=video,discussion&block_counts=video&nav_depth=3&username=android&course_id=course-v1%3AedX%2BDemoX%2BDemo_Course => generated 145329 bytes in 197 msecs (HTTP/1.1 200) 8 headers in 632 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:17:01,931 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "context": {"user_id": null, "path": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:17:01.931778+00:00", "event_type": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "event_source": "server", "page": null}
lms_1                        | [pid: 23|app: 0|req: 1152/3487] 172.18.0.12 () {46 vars in 2168 bytes} [Sat Feb 25 17:17:01 2023] GET /api/courses/v1/blocks/?depth=all&requested_fields=contains_gated_content,show_gated_sections,special_exam_info,graded,format,student_view_multi_device,due,completion&student_view_data=video,discussion&block_counts=video&nav_depth=3&username=android&course_id=course-v1%3AedX%2BDemoX%2BDemo_Course => generated 145329 bytes in 195 msecs (HTTP/1.1 200) 8 headers in 632 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:17:01,988 INFO 23 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "context": {"user_id": null, "path": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:17:01.988297+00:00", "event_type": "/api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course", "event_source": "server", "page": null}
lms_1                        | [pid: 7|app: 0|req: 1162/3488] 172.18.0.12 () {46 vars in 1742 bytes} [Sat Feb 25 17:17:01 2023] GET /api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course => generated 454 bytes in 286 msecs (HTTP/1.1 200) 8 headers in 621 bytes (1 switches on core 0)
lms_1                        | [pid: 23|app: 0|req: 1153/3489] 172.18.0.12 () {46 vars in 1742 bytes} [Sat Feb 25 17:17:01 2023] GET /api/mobile/v1/users/android/course_status_info/course-v1:edX+DemoX+Demo_Course => generated 454 bytes in 283 msecs (HTTP/1.1 200) 8 headers in 621 bytes (1 switches on core 0)
lms_1                        | 2023-02-25 17:17:05,050 INFO 7 [tracking] [user None] [ip 103.234.68.10] logger.py:41 - {"name": "/api/courseware/course/course-v1:edX+DemoX+Demo_Course", "context": {"course_id": "course-v1:edX+DemoX+Demo_Course", "course_user_tags": {}, "user_id": null, "path": "/api/courseware/course/course-v1:edX+DemoX+Demo_Course", "org_id": "edX", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "103.234.68.10", "agent": "Dalvik/2.1.0 (Linux; U; Android 12; Pixel 6 Pro Build/SD1A.210817.015.A4) slab/org.edx.mobilex/3.2.9", "host": "slab.ai", "referer": "", "accept_language": "", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-02-25T17:17:05.049825+00:00", "event_type": "/api/courseware/course/course-v1:edX+DemoX+Demo_Course", "event_source": "server", "page": null}





Hi @braden @BbrSofiane ,

I hope this message finds you well. I am writing today to humbly request your assistance with an issue that I have been struggling with for some time now. I have found myself stuck and unable to make progress, and I believe that your expertise and insights could be tremendously helpful.

@Manish_Hada ,
Please help me with this issue sir.

It looks like something went wrong on the server side and it is not able to find or load that xblock and it is throwing internet connection error… so get that URL and try to open it inside a web browser, so you may get some clue.

thank you @Manish_Hada for your help

Hi @Manish_Hada ,
I have followed your instruction Manish and I have found out that url into my web browser it is working fine in web browser. but if user is not logged in into the browser it is giving same error. Now I am struck how a user from mobile app logout automatically I have not changed a single line of code in my mobile app so it means I have done something wrong in my configurations Please guide me.

Generally when you open any web view in OpenEdx mobile app, like the xblock content, then it first loggedin the user and then shows you the content but same time, it logged out from the web browser automatically because only one session setting is enabled (PREVENT_CONCURRENT_LOGINS).
See, if it guides you on some direction

@Manish_Hada ,
Usually only single user is testing and only 1 user is logged in into the website at only any point of time but issue remains the same.

Looks like the problem is with the server, better to trace logs and also call that path in postman with the same authentication header which you are passing in webview.

Hi All,
I have found solution for this issue i have upgraded to Olive with same settings and enable Android plugin of OpenEdx my apps is working fine i am requesting you all please if you face this issue upgrade to olive. But i am currently struck in IOS App. I have not found any solution fo r that one once i found that i will post here.