|
| 1 | +.. title:: Bug reporting |
| 2 | + |
| 3 | +.. _bug_reporting: |
| 4 | + |
| 5 | +Bug reporting |
| 6 | +============= |
| 7 | + |
| 8 | +Report bugs or not working features from your school here: |
| 9 | + |
| 10 | +* List of existing issues: https://github.com/kurwjan/LanisAPI/issues |
| 11 | +* Create a new issue: https://github.com/kurwjan/LanisAPI/issues/new |
| 12 | + |
| 13 | +**When you report a bug please provide the log and exception text**:: |
| 14 | + |
| 15 | + INFO - LanisClient USING VERSION 0.3.0 |
| 16 | + WARNING - LanisClient LANISAPI IS STILL IN A EARLY STAGE SO EXPECT BUGS. |
| 17 | + WARNING - LanisClient IMPORTANT: Schulportal Hessen can change things quickly and is fragmented (some schools work, some not), so expect something to not be working |
| 18 | + INFO - LanisClient Authenticate: Using cookies to authenticate, skip authentication. |
| 19 | + INFO - LanisClient Cryptor - Generate key: Generated key cfb787ef-....-4...-....-............-......3... |
| 20 | + INFO - LanisClient Cryptor - Encrypt: Encrypted text U2FsdGVk.... |
| 21 | + INFO - httpx HTTP Request: POST https://start.schulportal.hessen.de/ajax.php?f=rsaPublicKey "HTTP/1.1 200 OK" |
| 22 | + Traceback (most recent call last): |
| 23 | + File "/home/kurwjan/Projects/LanisAPI/test/main.py", line 20, in <module> |
| 24 | + main() |
| 25 | + .... errors ..... |
| 26 | + File "/home/kurwjan/Projects/LanisAPI/src/lanisapi/helpers/request.py", line 25, in get |
| 27 | + return cls._check_response(response) |
| 28 | + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 29 | + File "/home/kurwjan/Projects/LanisAPI/src/lanisapi/helpers/request.py", line 70, in _check_response |
| 30 | + raise LoginPageRedirectError(msg) |
| 31 | + lanisapi.exceptions.LoginPageRedirectError: Lanis returned the login page while trying to access https://start.schulportal.hessen.de/ajax.php?f=rsaPublicKey. Maybe the session is over. |
| 32 | + |
| 33 | +Often the full log is actually not needed but still please send the full log. |
| 34 | + |
| 35 | +Library errors |
| 36 | +-------------- |
| 37 | + |
| 38 | +Hopefully you will receive a ``AppNotAvailableError``, ``NotAuthenticatedError`` or similar error which are defined here. |
| 39 | +These error are easily self-fixable. |
| 40 | + |
| 41 | +*However if you get a* ``..NotFoundError`` *you need to probably open a bug report.* |
| 42 | + |
| 43 | +``CriticalElementWasNotFoundError`` and html_logs.txt |
| 44 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 45 | + |
| 46 | +If you receive a ``CriticalElementWasNotFoundError`` there is something really wrong and it would be really helpful |
| 47 | +that you report it and provide the content of the ``html_logs.txt``. |
| 48 | +This file contains the suspicious html element *which may also contain sensitive data.* |
| 49 | + |
| 50 | +Example ``html_logs.txt`` |
| 51 | +^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 52 | +:: |
| 53 | + |
| 54 | + ############..... |
| 55 | + # ... info and format ... |
| 56 | + ############..... |
| 57 | + |
| 58 | + #--Start------------------------# |
| 59 | + 1700334895-get_task()-4-title: Missing element! |
| 60 | + |
| 61 | + *~~Element-HTML~~~~~~~~~~~~* |
| 62 | + |
| 63 | + <tr data-entry="1" data-book="4635" class="printable"> <td> <h3 style="margin: 0;"><a href="meinunterricht.php?a=sus_view&id=4635" title="gesamte Kursmappe anschauen"> <i class="fa fa-flip-horizontal fa-address-book "></i> <span class="name">Erdkunde 09gc (091EK02-GYM)</span> </a> </h3> <span class="teacher"> <div class="btn-group"> <button type="button" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Qaumy, Sohal (QAU)"> <i class="fa fa-user"></i> QAU <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="#"><i class="fa fa-user fa-fw"></i> Qaumy, Sohal</a></li> <li role="separator" class="divider"></li> <li> <a title="Nachricht schreiben" href="nachrichten.php?to[]=bC0xNzg2MjE=}"> <i class="fas fa-mail-bulk fa-fw"></i> Nachricht schreiben |
| 64 | + </a> </li> </ul> </div> </span> </td> <td> <b class="thema">PP Erdkunde Projektarbeit Raumanalyse</b> <small> <span class="datum">03.11.2023</span> </small> <br> </td> <td> <div class="btn-group-vertical btn-sameWidth " role="group" aria-label="Menü der Kursmappe"> <div class="btn-group files"> <button type="button" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fas fa-paperclip"></i> 1 Anhang <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a class="file" data-extension="pptx" data-file="PP-Projektarbeit-Klasse-9.pptx" href="#" target="_blank"> PP-Projektarbeit-Klasse-9.pptx <small>(17 MB)</small></a></li> <li role="separator" class="divider"></li> <li><a href="meinunterricht.php?a=downloadFile&b=zip&id=4635&e=1" target="_blank"><i class="fa fa-file-zip-o fa-fw"></i> alle downloaden</a></li> </ul> </div> <a href="meinunterricht.php?a=sus_view&id=4635" title="gesamte Kursmappe anschauen" class="btn btn-primary btn-sm"> <i class="fa fa-flip-horizontal fa-address-book "></i> alle Einträge |
| 65 | + </a> </div> </td> </tr> |
| 66 | + #--End--------------------------# |
| 67 | + |
| 68 | + |
| 69 | +Other errors |
| 70 | +------------ |
| 71 | + |
| 72 | +Other errors like ``JSONDecodeError`` are probably caused by the library not supporting your school. |
| 73 | +Please file a bug report with possible data to resolve it. |
0 commit comments