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

Bessere Fehlermeldungen in API responses #23

Open
Glutamat42 opened this issue Dec 4, 2024 · 0 comments
Open

Bessere Fehlermeldungen in API responses #23

Glutamat42 opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Glutamat42
Copy link
Member

Glutamat42 commented Dec 4, 2024

Die Fehlermeldungen sind oft nicht oder nur begrenzt hilfreich. Nach rücksprache mit Marvin "kommen die Meldungen so vom Backend" Beispiel:

Issue ProjektAdLer/Autorentool#665
Table 'PlayerData' already exists
Ist zwar eine gute Detailbeschreibung aber nicht super hilfreich ("Datenbankfehler")

Oder
#19
Da kommt das im Autorentool und "es wird alles angezeigt was vom Backend kommt"

An error has occurred
An error occurred while saving the entity changes. See the inner exception for details.

Oder:

moodle-1      | 172.24.0.1 - - [04/Dec/2024:15:49:36 +0000] "POST /webservice/rest/server.php HTTP/1.1" 200 241
backend-1     | 2024-12-04 15:49:34.646 +00:00 [VRB]   [END] UploadWorldCommand; Execution time=654ms
backend-1     | 2024-12-04 15:49:34.647 +00:00 [ERR]   An unknown error occurred while processing the request
backend-1     | System.NullReferenceException: Object reference not set to an instance of an object.

-> Object reference not set to an instance of an object ist auch keine hilfreiche Fehlermeldung bei einem API fehler

@Glutamat42 Glutamat42 added the enhancement New feature or request label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant