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

0b file download #137

Open
minuq opened this issue Apr 5, 2019 · 5 comments
Open

0b file download #137

minuq opened this issue Apr 5, 2019 · 5 comments

Comments

@minuq
Copy link

minuq commented Apr 5, 2019

"Vorlesung BuA Einführung Blut GMN SS16.pdf" syncs as empty file, if i download it manually from moodle i get the correct file which is displayed in the Sync-my-l2p tooltip (screenshot). The issue

image

I'm running the latest version from github on Debian Stretch as well as Sync-my-l2p 2.4.0 on Mac OS 10.14.3. Both show the same behaviour.

@RobertKrajewski
Copy link
Owner

please provide the advanced log file

@minuq
Copy link
Author

minuq commented Apr 22, 2019

INFO 21:08:10.581 Set logging to "Advanced"

DEBUG 21:08:10.582 Loaded RefreshToken:

DEBUG 21:08:10.583 Vermuteter Pfad der Progammdaten: /home/pi/.local/share/Sync-my-L2P/Sync-my-L2P

INFO 21:08:11.574 L2P Erreichbarkeitsrequest

INFO 21:08:11.999 Moodle Erreichbarkeitsrequest

INFO 21:08:14.781 L2P erreichbar

INFO 21:08:14.782 Moodle erreichbar

DEBUG 21:08:15.342 Access renewed through Refreshtoken

DEBUG 21:08:15.355 Accesstoken:

DEBUG 21:08:16.870 Sende Request für Veranstaltungen

DEBUG 21:08:16.875 Sende Request für Veranstaltungen von Moodle

DEBUG 21:08:17.297 Elapsed time: 00:00:00 for request url: https://www3.elearning.rwth-aachen.de/_vti_bin/L2PServices/api.svc/v1/viewAllCourseInfoByCurrentSemester?accessToken=

INFO 21:08:17.298 Veranstaltungen empfangen

DEBUG 21:08:18.130 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getmyenrolledcourses?token=&semester_offset=0

INFO 21:08:18.130 Moodle-Veranstaltungen empfangen

DEBUG 21:08:18.143 Moodle-Veranstaltung GK 1+2.b Swedish (SK) [02.56629] ( 3348 ) added.

DEBUG 21:08:18.148 Moodle-Veranstaltung MSG 4. Sem. Allgemeine Informationen und UK (AG) [51.58973] ( 2347 ) added.

DEBUG 21:08:18.154 Moodle-Veranstaltung MSG 4.Sem. Systemblock Nervensystem Vorlesung (VO) [51.60347] ( 1068 ) added.

DEBUG 21:08:18.159 Moodle-Veranstaltung MSG 4. Sem. Systemblock Atmung Vorlesung (VO) [51.59385] ( 1066 ) added.

DEBUG 21:08:18.165 Moodle-Veranstaltung MSG 4. Sem. Systemblock Blut und Abwehr Vorlesung (AG) [51.51397] ( 1064 ) added.

DEBUG 21:08:18.177 Moodle-Veranstaltung Evidenzbasierte Medizin (EbM) Computerpraxis ( 163 ) added.

DEBUG 21:08:18.177 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 21:08:18.178 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 21:08:18.178 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 21:08:18.178 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 21:08:18.178 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 21:08:18.179 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 21:08:18.297 Elapsed time: 00:00:00 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 21:08:18.298 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 21:08:18.308 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 21:08:19.178 Elapsed time: 00:00:00 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 21:08:19.178 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 21:08:19.195 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 21:08:19.376 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 21:08:19.376 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 21:08:19.698 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 21:08:19.699 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 21:08:19.699 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 21:08:20.343 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 21:08:20.344 Elapsed time: 00:00:02 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 21:08:20.344 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 21:08:20.353 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 21:08:20.353 Elapsed time: 00:00:02 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 21:08:20.353 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 21:08:20.398 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 21:08:20.408 Aktualisierung beendet

This one should've happened as i deleted the file

DEBUG 21:08:20.461 Starte Download von https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/downloadfile/VL_Grundlagen Gerinnung_Müller-Newen.pdf?downloadurl=/259808/mod_folder/content/1/VL_Grundlagen Gerinnung_Müller-Newen.pdf?forcedownload=1&token=

This one should not have happened as the file was present, everytime i run Sync-my-L2P it gets redownloaded in varying file sizes, from 0b to 2mb and most recently as the correct file too.

DEBUG 21:08:22.519 Starte Download von https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/downloadfile/Vorlesung BuA Einführung Blut GMN SS16.pdf?downloadurl=/259808/mod_folder/content/1/Vorlesung BuA Einführung Blut GMN SS16.pdf?forcedownload=1&token=

I took a closer look as it made me curious that sometimes 2 files were present with apparently the same filename and noticed that sometimes the filename contains a "regular" ü and sometimes the unicode char 0308.

@RobertKrajewski
Copy link
Owner

There have been some issues with the encoding of file names. So I guess, that this issue will be solved with the next version. Please reopen the issue if this is not the case

@minuq
Copy link
Author

minuq commented May 9, 2019

The error still persists in the latest Version, both 2.4.1 for OS X as well as manually compiled latest github commit.

INFO 18:25:11.909 Set logging to "Advanced"

DEBUG 18:25:11.910 Loaded RefreshToken:

DEBUG 18:25:11.911 Vermuteter Pfad der Progammdaten: /home/pi/.local/share/Sync-my-L2P/Sync-my-L2P

INFO 18:25:13.013 L2P Erreichbarkeitsrequest

INFO 18:25:13.072 Moodle Erreichbarkeitsrequest

INFO 18:25:13.688 L2P erreichbar

INFO 18:25:13.689 Moodle erreichbar

DEBUG 18:25:14.258 Access renewed through Refreshtoken

DEBUG 18:25:14.258 Neuer accesstoken:

DEBUG 18:25:14.325 Zugriff auf folgende Scopes: l2p2013.rwth userinfo.rwth moodle.rwth anonymous.rwth

DEBUG 18:25:15.840 Sende Request f�r Veranstaltungen

DEBUG 18:25:15.843 Sende Request f�r Veranstaltungen von Moodle

DEBUG 18:25:16.405 Elapsed time: 00:00:00 for request url: https://www3.elearning.rwth-aachen.de/_vti_bin/L2PServices/api.svc/v1/viewAllCourseInfoByCurrentSemester?accessToken=

INFO 18:25:16.406 Veranstaltungen empfangen

DEBUG 18:25:17.213 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getmyenrolledcourses?token=&semester_offset=0

INFO 18:25:17.214 Moodle-Veranstaltungen empfangen

DEBUG 18:25:17.227 Moodle-Veranstaltung GK 1+2.b Swedish (SK) [02.56629] ( 3348 ) added.

DEBUG 18:25:17.234 Moodle-Veranstaltung MSG 4. Sem. Allgemeine Informationen und UK (AG) [51.58973] ( 2347 ) added.

DEBUG 18:25:17.240 Moodle-Veranstaltung MSG 4.Sem. Systemblock Nervensystem Vorlesung (VO) [51.60347] ( 1068 ) added.

DEBUG 18:25:17.246 Moodle-Veranstaltung MSG 4. Sem. Systemblock Atmung Vorlesung (VO) [51.59385] ( 1066 ) added.

DEBUG 18:25:17.252 Moodle-Veranstaltung MSG 4. Sem. Systemblock Blut und Abwehr Vorlesung (AG) [51.51397] ( 1064 ) added.

DEBUG 18:25:17.264 Moodle-Veranstaltung Evidenzbasierte Medizin (EbM) Computerpraxis ( 163 ) added.

DEBUG 18:25:17.265 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 18:25:17.265 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 18:25:17.265 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 18:25:17.266 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 18:25:17.266 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 18:25:17.266 Erstellter Moodle-Request: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 18:25:17.391 Elapsed time: 00:00:00 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 18:25:17.392 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 18:25:17.411 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=3348

DEBUG 18:25:18.290 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 18:25:18.290 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 18:25:18.309 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1068

DEBUG 18:25:18.310 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 18:25:18.310 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 18:25:18.435 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1066

DEBUG 18:25:18.436 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 18:25:18.436 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 18:25:18.484 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=2347

DEBUG 18:25:18.485 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 18:25:18.485 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 18:25:18.755 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=163

DEBUG 18:25:18.756 Elapsed time: 00:00:01 for request url: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 18:25:18.756 Moodle-Dateiinformationen empfangen: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 18:25:19.342 Moodle-Dateiinformationen geparst: https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/getfiles?token=&courseid=1064

DEBUG 18:25:19.355 Aktualisierung beendet

DEBUG 18:25:19.375 Starte Download von https://moped.ecampus.rwth-aachen.de/proxy/api/v2/eLearning/Moodle/downloadfile/Physiol_Atmung-II-III(Sa?ure-Base).pdf?downloadurl=/424964/mod_folder/content/2/Physiol_Atmung-II-III%28Sa?ure-Base%29.pdf?forcedownload=1&token=

@JayBraker
Copy link

Hi, I cannot reproduce this issue with our latest build:
https://github.com/rwthmoodle/Sync-my-L2P
If this still has relevance to you, please test with the provided release 2.4.5

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

3 participants