Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Courses are shown in version 2.5.1 #22

Open
J0R0W opened this issue Mar 3, 2022 · 1 comment
Open

No Courses are shown in version 2.5.1 #22

J0R0W opened this issue Mar 3, 2022 · 1 comment
Assignees

Comments

@J0R0W
Copy link

J0R0W commented Mar 3, 2022

Nothing happens if i click on the refresh button.

To Reproduce
Steps to reproduce the behavior:
Login and click on the Refresh Button
Expected behavior
The L2P-Program should show me all my Moodle Rooms.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
I think SyncMyL2P sends a wrong API request:

GET Request in version 2.4.2 (Working version):
GET /proxy/api/v2/eLearning/Moodle/getmyenrolledcourses?token=XXX&semester_offset=0 HTTP/1.1
Host: moped.ecampus.rwth-aachen.de
Connection: close
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,en,*
User-Agent: Mozilla/5.0

GET Request in 2.5.1:
GET /proxy/api/v2/eLearning/Moodle/getmyenrolledcourses?token=XXX&semesterOffset=0 HTTP/1.1
Host: moped.ecampus.rwth-aachen.de
Connection: close
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,en,*
User-Agent: Mozilla/5.0

Possible Solution

Here you can clearly see that the GET-Parameter "semester offset" differ in the spelling. I think a correction should solve the bug.

@JayBraker
Copy link

Thank you for bringing this to our attention.
However the parameters semester_offset and semesterOffset are accepted equally.

I think your problem might be the semesterOffset is set to 0, this requests only a currently active courses.
Please go to the options tab and untick "Only show courses for the current semester" then go back and Update again - you should get the complete list of every Moodle course you attended

@JayBraker JayBraker self-assigned this Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants