GithubHelp home page GithubHelp logo

Comments (12)

aleffert avatar aleffert commented on June 7, 2024

@cucxabeng in order to help you debug, I need to know what the server is sending you back. Can you find that out?

from edx-app-ios.

cucxabeng avatar cucxabeng commented on June 7, 2024

@aleffert Thank for your reply. Can you suggest me debug to show what server response? I am trying to find...

from edx-app-ios.

aleffert avatar aleffert commented on June 7, 2024

@cucxabeng I usually use Charles (http://charlesproxy.com) to watch my network traffic, but if you don't already have that, you can try setting a breakpoint right here (https://github.com/edx/edx-app-ios/blob/master/Source/NetworkManager.swift#L242) and printing some things to the console or adding debug logs.

Another nice way to capture API output is to find out the request being made and then just go that URL from your web browser after logging into the LMS. The request URL is logged here: https://github.com/edx/edx-app-ios/blob/master/Source/NetworkManager.swift#L239

from edx-app-ios.

cucxabeng avatar cucxabeng commented on June 7, 2024

@aleffert First, thank you for very cool tool Charles.
I have just used it to watch network traffic.
I get response 404 NOT FOUND

http://MY_PRIVATE_DOMAIN/api/courses/v1/blocks/?block_counts=video&course_id=XXXXXXXXX&depth=all&nav_depth=3&requested_fields=graded%2Cstudent_view_multi_device%2Cformat&student_view_data=video&username=zzzz

from edx-app-ios.

dmitraver avatar dmitraver commented on June 7, 2024

I have same issue actually. Just downloaded the app from app store. Can't access any of the course content. Keeps getting "Unable to load course content" in Courseware section.

from edx-app-ios.

aleffert avatar aleffert commented on June 7, 2024

@dmitraver what course are you trying to access? We've had a few reports of that and are looking into it. Feel free to follow up with our support people via the "SUBMIT FEEDBACK" link in the app.

from edx-app-ios.

aleffert avatar aleffert commented on June 7, 2024

@cucxabeng are you still having a problem. It doesn't look like that API is behind a settings flag. It's relatively new though, maybe your full stack instance doesn't have that code?

from edx-app-ios.

dmitraver avatar dmitraver commented on June 7, 2024

@aleffert Embedded Systems, Electronic Interfaces. Thx for suggestion. Will do.

from edx-app-ios.

cucxabeng avatar cucxabeng commented on June 7, 2024

@alefferti Thank you, I found https://openedx.atlassian.net/browse/MA-978
My URL Course API: /api/course_structure/v0/courses/ instead of /api/courses/v1/blocks

It has some different with URL parameters and Response Fields. I follow description in this API on browser and fixed my app OK. Now I'm testing my app.

@dmitraver Did you set true for "ENABLE_MOBILE_REST_API" and "ENABLE_OAUTH2_PROVIDER"?

from edx-app-ios.

krishnakanthjb avatar krishnakanthjb commented on June 7, 2024

@cucxabeng : Are you able to access the course content now?If yes let me know how? I am facing the same issue

Thanks in advance..

from edx-app-ios.

cucxabeng avatar cucxabeng commented on June 7, 2024

@krishnakanthjb Sorry for late reply.
Now my app seems be ok.

1/ Plz follow http://edx.readthedocs.org/projects/edx-installing-configuring-and-running/en/latest/mobile.html to config your LMS server/

2/ I found latest release app works with new API get course and my LMS server is old version. You can test with http://you_domain.com/api/course_structure/v0/courses/COURSE_ID/blocks+navigation and http://you_domain.com/api/courses/v1/blocks/?course_id=COURSE_ID to know what is your API link. (https://openedx.atlassian.net/browse/MA-978).

from edx-app-ios.

loclegkxim avatar loclegkxim commented on June 7, 2024

@cucxabeng We are having the same issue when trying to deploy the Open Edx server to be used by the mobile app. May I send you an email to talk further? My email is [email protected]

from edx-app-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.